0s autopkgtest [02:39:40]: starting date and time: 2026-01-23 02:39:40+0000 0s autopkgtest [02:39:40]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [02:39:40]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.jb63h0up/out --timeout-copy=6000 -a i386 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade jupyter-notebook --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.14.2-1 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-6.secgroup --name adt-resolute-i386-jupyter-notebook-20260123-023940-juju-7f2275-prod-proposed-migration-environment-2-e9758ac5-1bf0-40e9-b57b-86df90895d03 --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 11s Creating nova instance adt-resolute-i386-jupyter-notebook-20260123-023940-juju-7f2275-prod-proposed-migration-environment-2-e9758ac5-1bf0-40e9-b57b-86df90895d03 from image adt/ubuntu-resolute-amd64-server-20260122.img (UUID d51ec989-51d3-406a-bc50-4c9902afb6a4)... 146s autopkgtest [02:42:06]: testbed dpkg architecture: amd64 146s autopkgtest [02:42:06]: testbed apt version: 3.1.12 146s autopkgtest [02:42:06]: @@@@@@@@@@@@@@@@@@@@ test bed setup 147s autopkgtest [02:42:07]: testbed release detected to be: None 147s autopkgtest [02:42:07]: updating testbed package index (apt update) 147s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [124 kB] 147s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 147s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 148s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 148s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [2820 B] 148s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [1020 kB] 148s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [23.5 kB] 148s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [87.5 kB] 148s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [95.0 kB] 148s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [113 kB] 148s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [3492 B] 148s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [12.3 kB] 148s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3696 B] 148s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 148s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [406 kB] 148s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [788 kB] 148s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [19.5 kB] 148s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [8644 B] 148s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [2912 B] 148s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [444 B] 149s Fetched 2711 kB in 1s (3421 kB/s) 149s Reading package lists... 150s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 150s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 150s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 150s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 150s Reading package lists... 150s Reading package lists... 151s Building dependency tree... 151s Reading state information... 151s Calculating upgrade... 151s The following packages were automatically installed and are no longer required: 151s python3.13 python3.13-minimal 151s Use 'sudo apt autoremove' to remove them. 151s The following NEW packages will be installed: 151s libpython3.14-minimal libpython3.14-stdlib linux-headers-6.18.0-9 151s linux-headers-6.18.0-9-generic linux-image-6.18.0-9-generic 151s linux-modules-6.18.0-9-generic linux-tools-6.18.0-9 151s linux-tools-6.18.0-9-generic python3.14 python3.14-minimal 151s The following packages will be upgraded: 151s apt bpftool libapt-pkg7.0 libplymouth5 libpython3-stdlib linux-generic 151s linux-headers-generic linux-headers-virtual linux-image-generic 151s linux-image-virtual linux-libc-dev linux-perf linux-tools-common 151s linux-virtual plymouth plymouth-theme-ubuntu-text python3 python3-gdbm 151s python3-minimal 151s 19 upgraded, 10 newly installed, 0 to remove and 0 not upgraded. 151s Need to get 222 MB of archives. 151s After this operation, 336 MB of additional disk space will be used. 151s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.2-1 [920 kB] 151s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.2-1 [2563 kB] 151s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-gdbm amd64 3.14.2-1 [11.1 kB] 151s Get:4 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.14.2-1 [28.2 kB] 151s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.14.2-1 [22.9 kB] 151s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.2-1 [2398 kB] 151s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.2-1 [816 kB] 152s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.14.2-1 [10.9 kB] 152s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libapt-pkg7.0 amd64 3.1.13 [1151 kB] 152s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 apt amd64 3.1.13 [1478 kB] 152s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 libplymouth5 amd64 24.004.60+git20250831.4a3c171d-0ubuntu4 [143 kB] 152s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 plymouth-theme-ubuntu-text amd64 24.004.60+git20250831.4a3c171d-0ubuntu4 [10.2 kB] 152s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 plymouth amd64 24.004.60+git20250831.4a3c171d-0ubuntu4 [139 kB] 152s Get:14 http://ftpmaster.internal/ubuntu resolute/main amd64 bpftool amd64 7.7.0+6.18.0-9.9 [1256 kB] 152s Get:15 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-modules-6.18.0-9-generic amd64 6.18.0-9.9 [168 MB] 157s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-image-6.18.0-9-generic amd64 6.18.0-9.9 [16.5 MB] 157s Get:17 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-generic amd64 6.18.0-9.9+1 [1696 B] 157s Get:18 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-image-generic amd64 6.18.0-9.9+1 [12.2 kB] 157s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-virtual amd64 6.18.0-9.9+1 [1692 B] 157s Get:20 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-image-virtual amd64 6.18.0-9.9+1 [12.1 kB] 157s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-headers-virtual amd64 6.18.0-9.9+1 [1648 B] 157s Get:22 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-headers-6.18.0-9 all 6.18.0-9.9 [14.9 MB] 157s Get:23 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-headers-6.18.0-9-generic amd64 6.18.0-9.9 [4290 kB] 157s Get:24 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-headers-generic amd64 6.18.0-9.9+1 [12.0 kB] 157s Get:25 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-libc-dev amd64 6.18.0-9.9 [1860 kB] 157s Get:26 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-perf amd64 6.18.0-9.9 [4480 kB] 157s Get:27 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-tools-common all 6.18.0-9.9 [377 kB] 157s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-tools-6.18.0-9 amd64 6.18.0-9.9 [1510 kB] 157s Get:29 http://ftpmaster.internal/ubuntu resolute/main amd64 linux-tools-6.18.0-9-generic amd64 6.18.0-9.9 [1608 B] 158s dpkg-preconfigure: unable to re-open stdin: No such file or directory 158s Fetched 222 MB in 7s (33.4 MB/s) 158s Selecting previously unselected package libpython3.14-minimal:amd64. 158s (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 ... 83885 files and directories currently installed.) 158s Preparing to unpack .../libpython3.14-minimal_3.14.2-1_amd64.deb ... 158s Unpacking libpython3.14-minimal:amd64 (3.14.2-1) ... 158s Selecting previously unselected package python3.14-minimal. 158s Preparing to unpack .../python3.14-minimal_3.14.2-1_amd64.deb ... 158s Unpacking python3.14-minimal (3.14.2-1) ... 158s Preparing to unpack .../python3-gdbm_3.14.2-1_amd64.deb ... 158s Unpacking python3-gdbm (3.14.2-1) over (3.13.9-1) ... 158s Setting up libpython3.14-minimal:amd64 (3.14.2-1) ... 158s Setting up python3.14-minimal (3.14.2-1) ... 159s (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 ... 84227 files and directories currently installed.) 159s Preparing to unpack .../python3-minimal_3.14.2-1_amd64.deb ... 159s Unpacking python3-minimal (3.14.2-1) over (3.13.7-1) ... 159s Setting up python3-minimal (3.14.2-1) ... 159s (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 ... 84227 files and directories currently installed.) 159s Preparing to unpack .../00-python3_3.14.2-1_amd64.deb ... 159s running python pre-rtupdate hooks for python3.14... 159s Unpacking python3 (3.14.2-1) over (3.13.7-1) ... 159s Selecting previously unselected package libpython3.14-stdlib:amd64. 159s Preparing to unpack .../01-libpython3.14-stdlib_3.14.2-1_amd64.deb ... 159s Unpacking libpython3.14-stdlib:amd64 (3.14.2-1) ... 159s Selecting previously unselected package python3.14. 159s Preparing to unpack .../02-python3.14_3.14.2-1_amd64.deb ... 159s Unpacking python3.14 (3.14.2-1) ... 159s Preparing to unpack .../03-libpython3-stdlib_3.14.2-1_amd64.deb ... 159s Unpacking libpython3-stdlib:amd64 (3.14.2-1) over (3.13.7-1) ... 159s Preparing to unpack .../04-libapt-pkg7.0_3.1.13_amd64.deb ... 159s Unpacking libapt-pkg7.0:amd64 (3.1.13) over (3.1.12) ... 159s Preparing to unpack .../05-apt_3.1.13_amd64.deb ... 159s Unpacking apt (3.1.13) over (3.1.12) ... 159s Preparing to unpack .../06-libplymouth5_24.004.60+git20250831.4a3c171d-0ubuntu4_amd64.deb ... 159s Unpacking libplymouth5:amd64 (24.004.60+git20250831.4a3c171d-0ubuntu4) over (24.004.60+git20250831.4a3c171d-0ubuntu3) ... 159s Preparing to unpack .../07-plymouth-theme-ubuntu-text_24.004.60+git20250831.4a3c171d-0ubuntu4_amd64.deb ... 159s Unpacking plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu4) over (24.004.60+git20250831.4a3c171d-0ubuntu3) ... 159s Preparing to unpack .../08-plymouth_24.004.60+git20250831.4a3c171d-0ubuntu4_amd64.deb ... 159s Unpacking plymouth (24.004.60+git20250831.4a3c171d-0ubuntu4) over (24.004.60+git20250831.4a3c171d-0ubuntu3) ... 159s Preparing to unpack .../09-bpftool_7.7.0+6.18.0-9.9_amd64.deb ... 159s Unpacking bpftool (7.7.0+6.18.0-9.9) over (7.7.0+6.18.0-8.8) ... 159s Selecting previously unselected package linux-modules-6.18.0-9-generic. 159s Preparing to unpack .../10-linux-modules-6.18.0-9-generic_6.18.0-9.9_amd64.deb ... 159s Unpacking linux-modules-6.18.0-9-generic (6.18.0-9.9) ... 160s Selecting previously unselected package linux-image-6.18.0-9-generic. 160s Preparing to unpack .../11-linux-image-6.18.0-9-generic_6.18.0-9.9_amd64.deb ... 160s Unpacking linux-image-6.18.0-9-generic (6.18.0-9.9) ... 160s Preparing to unpack .../12-linux-generic_6.18.0-9.9+1_amd64.deb ... 160s Unpacking linux-generic (6.18.0-9.9+1) over (6.18.0-8.8) ... 160s Preparing to unpack .../13-linux-image-generic_6.18.0-9.9+1_amd64.deb ... 160s Unpacking linux-image-generic (6.18.0-9.9+1) over (6.18.0-8.8) ... 160s Preparing to unpack .../14-linux-virtual_6.18.0-9.9+1_amd64.deb ... 160s Unpacking linux-virtual (6.18.0-9.9+1) over (6.18.0-8.8) ... 160s Preparing to unpack .../15-linux-image-virtual_6.18.0-9.9+1_amd64.deb ... 160s Unpacking linux-image-virtual (6.18.0-9.9+1) over (6.18.0-8.8) ... 160s Preparing to unpack .../16-linux-headers-virtual_6.18.0-9.9+1_amd64.deb ... 160s Unpacking linux-headers-virtual (6.18.0-9.9+1) over (6.18.0-8.8) ... 160s Selecting previously unselected package linux-headers-6.18.0-9. 160s Preparing to unpack .../17-linux-headers-6.18.0-9_6.18.0-9.9_all.deb ... 160s Unpacking linux-headers-6.18.0-9 (6.18.0-9.9) ... 162s Selecting previously unselected package linux-headers-6.18.0-9-generic. 162s Preparing to unpack .../18-linux-headers-6.18.0-9-generic_6.18.0-9.9_amd64.deb ... 162s Unpacking linux-headers-6.18.0-9-generic (6.18.0-9.9) ... 162s Preparing to unpack .../19-linux-headers-generic_6.18.0-9.9+1_amd64.deb ... 162s Unpacking linux-headers-generic (6.18.0-9.9+1) over (6.18.0-8.8) ... 163s Preparing to unpack .../20-linux-libc-dev_6.18.0-9.9_amd64.deb ... 163s Unpacking linux-libc-dev:amd64 (6.18.0-9.9) over (6.18.0-8.8) ... 163s Preparing to unpack .../21-linux-perf_6.18.0-9.9_amd64.deb ... 163s Unpacking linux-perf (6.18.0-9.9) over (6.18.0-8.8) ... 163s Preparing to unpack .../22-linux-tools-common_6.18.0-9.9_all.deb ... 163s Unpacking linux-tools-common (6.18.0-9.9) over (6.18.0-8.8) ... 163s Selecting previously unselected package linux-tools-6.18.0-9. 163s Preparing to unpack .../23-linux-tools-6.18.0-9_6.18.0-9.9_amd64.deb ... 163s Unpacking linux-tools-6.18.0-9 (6.18.0-9.9) ... 163s Selecting previously unselected package linux-tools-6.18.0-9-generic. 163s Preparing to unpack .../24-linux-tools-6.18.0-9-generic_6.18.0-9.9_amd64.deb ... 163s Unpacking linux-tools-6.18.0-9-generic (6.18.0-9.9) ... 163s Setting up libpython3.14-stdlib:amd64 (3.14.2-1) ... 163s Setting up bpftool (7.7.0+6.18.0-9.9) ... 163s Setting up linux-libc-dev:amd64 (6.18.0-9.9) ... 163s Setting up linux-perf (6.18.0-9.9) ... 163s Setting up libplymouth5:amd64 (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 163s Setting up linux-headers-6.18.0-9 (6.18.0-9.9) ... 163s Setting up linux-modules-6.18.0-9-generic (6.18.0-9.9) ... 164s Setting up libapt-pkg7.0:amd64 (3.1.13) ... 164s Setting up python3.14 (3.14.2-1) ... 165s Setting up linux-image-6.18.0-9-generic (6.18.0-9.9) ... 166s I: /boot/vmlinuz is now a symlink to vmlinuz-6.18.0-9-generic 166s I: /boot/initrd.img is now a symlink to initrd.img-6.18.0-9-generic 166s Setting up linux-tools-common (6.18.0-9.9) ... 166s Setting up libpython3-stdlib:amd64 (3.14.2-1) ... 166s Setting up linux-headers-6.18.0-9-generic (6.18.0-9.9) ... 166s Setting up linux-image-generic (6.18.0-9.9+1) ... 166s Setting up apt (3.1.13) ... 166s Setting up python3-gdbm (3.14.2-1) ... 166s Setting up plymouth (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 166s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 166s update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults 167s Setting up linux-tools-6.18.0-9 (6.18.0-9.9) ... 167s Setting up python3 (3.14.2-1) ... 167s running python rtupdate hooks for python3.14... 167s running python post-rtupdate hooks for python3.14... 167s Setting up linux-headers-generic (6.18.0-9.9+1) ... 167s Setting up linux-image-virtual (6.18.0-9.9+1) ... 167s Setting up linux-headers-virtual (6.18.0-9.9+1) ... 167s Setting up linux-generic (6.18.0-9.9+1) ... 167s Setting up linux-tools-6.18.0-9-generic (6.18.0-9.9) ... 167s Setting up linux-virtual (6.18.0-9.9+1) ... 167s Processing triggers for libc-bin (2.42-2ubuntu4) ... 167s Processing triggers for systemd (259-1ubuntu2) ... 167s Processing triggers for man-db (2.13.1-1) ... 168s Processing triggers for initramfs-tools (0.150ubuntu7) ... 168s update-initramfs: Generating /boot/initrd.img-6.18.0-8-generic 172s Setting up plymouth-theme-ubuntu-text (24.004.60+git20250831.4a3c171d-0ubuntu4) ... 172s Processing triggers for linux-image-6.18.0-9-generic (6.18.0-9.9) ... 172s /etc/kernel/postinst.d/initramfs-tools: 172s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 176s /etc/kernel/postinst.d/zz-update-grub: 176s Sourcing file `/etc/default/grub' 176s Sourcing file `/etc/default/grub.d/50-cloudimg-settings.cfg' 176s Sourcing file `/etc/default/grub.d/90-autopkgtest.cfg' 176s Generating grub configuration file ... 176s Found linux image: /boot/vmlinuz-6.18.0-9-generic 176s Found initrd image: /boot/initrd.img-6.18.0-9-generic 176s Found linux image: /boot/vmlinuz-6.18.0-8-generic 176s Found initrd image: /boot/initrd.img-6.18.0-8-generic 176s Warning: os-prober will not be executed to detect other bootable partitions. 176s Systems on them will not be added to the GRUB boot configuration. 176s Check GRUB_DISABLE_OS_PROBER documentation entry. 176s Adding boot menu entry for UEFI Firmware Settings ... 176s done 176s Processing triggers for initramfs-tools (0.150ubuntu7) ... 176s update-initramfs: Generating /boot/initrd.img-6.18.0-9-generic 181s autopkgtest [02:42:41]: upgrading testbed (apt dist-upgrade and autopurge) 181s Reading package lists... 181s Building dependency tree... 181s Reading state information... 182s Calculating upgrade... 182s The following packages were automatically installed and are no longer required: 182s python3.13 python3.13-minimal 182s Use 'sudo apt autoremove' to remove them. 182s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 182s Reading package lists... 182s Building dependency tree... 182s Reading state information... 182s Solving dependencies... 182s The following packages will be REMOVED: 182s python3.13* python3.13-minimal* 182s 0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded. 182s After this operation, 7860 kB disk space will be freed. 182s (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 ... 124951 files and directories currently installed.) 182s Removing python3.13 (3.13.11-1) ... 182s Removing python3.13-minimal (3.13.11-1) ... 183s Processing triggers for man-db (2.13.1-1) ... 183s Processing triggers for systemd (259-1ubuntu2) ... 183s (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 ... 124924 files and directories currently installed.) 183s Purging configuration files for python3.13-minimal (3.13.11-1) ... 184s autopkgtest [02:42:44]: rebooting testbed after setup commands that affected boot 246s autopkgtest [02:43:46]: testbed running kernel: Linux 6.18.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Jan 12 16:49:02 UTC 2026 248s autopkgtest [02:43:48]: @@@@@@@@@@@@@@@@@@@@ apt-source jupyter-notebook 250s Get:1 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (dsc) [3737 B] 250s Get:2 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (tar) [8501 kB] 250s Get:3 http://ftpmaster.internal/ubuntu resolute/universe jupyter-notebook 6.4.13-5ubuntu0.1 (diff) [52.5 kB] 250s gpgv: Signature made Tue Apr 22 01:32:11 2025 UTC 250s gpgv: using RSA key 00F6164E9C2D21BAFBC47E0E58DAD120A6939167 250s gpgv: Can't check signature: No public key 250s dpkg-source: warning: cannot verify inline signature for ./jupyter-notebook_6.4.13-5ubuntu0.1.dsc: no acceptable signature found 251s autopkgtest [02:43:51]: testing package jupyter-notebook version 6.4.13-5ubuntu0.1 251s autopkgtest [02:43:51]: build not needed 253s autopkgtest [02:43:53]: test pytest: preparing testbed 253s Reading package lists... 253s Building dependency tree... 253s Reading state information... 253s Solving dependencies... 253s The following NEW packages will be installed: 253s fonts-font-awesome fonts-glyphicons-halflings fonts-lato fonts-mathjax gdb 253s jupyter-core jupyter-notebook libargon2-1 libbabeltrace1 libipt2 253s libjs-backbone libjs-bootstrap libjs-bootstrap-tour libjs-codemirror 253s libjs-es6-promise libjs-jed libjs-jquery libjs-jquery-typeahead 253s libjs-jquery-ui libjs-marked libjs-mathjax libjs-moment libjs-requirejs 253s libjs-requirejs-text libjs-text-encoding libjs-underscore libjs-xterm 253s libnorm1t64 libpgm-5.3-0t64 libsodium23 libsource-highlight-common 253s libsource-highlight4t64 libzmq5 node-jed python-notebook-doc 253s python-tinycss2-common python3-all python3-argon2 253s python3-argon2-cffi-bindings python3-astroid python3-asttokens 253s python3-bleach python3-bs4 python3-cffi python3-comm python3-coverage 253s python3-debugpy python3-decorator python3-defusedxml python3-executing 253s python3-fastjsonschema python3-html5lib python3-iniconfig python3-ipykernel 253s python3-ipython python3-ipython-genutils python3-jedi python3-jupyter-client 253s python3-jupyter-core python3-jupyterlab-pygments python3-matplotlib-inline 253s python3-mistune python3-nbclient python3-nbconvert python3-nbformat 253s python3-nest-asyncio python3-notebook python3-pandocfilters python3-parso 253s python3-platformdirs python3-pluggy python3-ply python3-prometheus-client 253s python3-prompt-toolkit python3-psutil python3-pure-eval python3-pycparser 253s python3-pytest python3-requests-unixsocket python3-send2trash 253s python3-soupsieve python3-stack-data python3-terminado python3-tinycss2 253s python3-tornado python3-traitlets python3-typeshed python3-wcwidth 253s python3-webencodings python3-zmq python3.13 python3.13-minimal 253s sphinx-rtd-theme-common 253s 0 upgraded, 93 newly installed, 0 to remove and 0 not upgraded. 253s Need to get 35.2 MB of archives. 253s After this operation, 174 MB of additional disk space will be used. 253s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.13-minimal amd64 3.13.11-1 [2408 kB] 254s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-lato all 2.015-1build1 [2779 kB] 254s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.13 amd64 3.13.11-1 [758 kB] 254s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-font-awesome all 5.0.10+really4.7.0~dfsg-4.1build1 [531 kB] 254s Get:5 http://ftpmaster.internal/ubuntu resolute/universe amd64 fonts-glyphicons-halflings all 1.009~3.4.1+dfsg-6 [119 kB] 254s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 fonts-mathjax all 2.7.9+dfsg-1build1 [2283 kB] 254s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 libbabeltrace1 amd64 1.5.11-5 [166 kB] 254s Get:8 http://ftpmaster.internal/ubuntu resolute/main amd64 libipt2 amd64 2.1.2-3 [49.2 kB] 254s Get:9 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight-common all 3.1.9-4.3build2 [64.2 kB] 254s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight4t64 amd64 3.1.9-4.3build2 [273 kB] 254s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 gdb amd64 16.3-5ubuntu1 [4047 kB] 254s Get:12 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-platformdirs all 4.5.1-1 [17.1 kB] 254s Get:13 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-traitlets all 5.14.3+really5.14.3-2 [71.7 kB] 254s Get:14 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-core all 5.9.1-1 [28.9 kB] 254s Get:15 http://ftpmaster.internal/ubuntu resolute/universe amd64 jupyter-core all 5.9.1-1 [6938 B] 254s Get:16 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-underscore all 1.13.7~dfsg+~1.13.0-1 [86.4 kB] 254s Get:17 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-backbone all 1.4.1~dfsg+~1.4.15-3build1 [186 kB] 254s Get:18 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-bootstrap all 3.4.1+dfsg-6 [129 kB] 254s Get:19 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-jquery all 3.7.1+dfsg+~3.5.33-1build1 [321 kB] 254s Get:20 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-bootstrap-tour all 0.12.0+dfsg-6 [21.6 kB] 254s Get:21 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-codemirror all 5.65.20+~cs5.83.25-1 [710 kB] 254s Get:22 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-es6-promise all 4.2.8-12 [14.1 kB] 254s Get:23 http://ftpmaster.internal/ubuntu resolute/universe amd64 node-jed all 1.1.1-4 [15.2 kB] 254s Get:24 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jed all 1.1.1-4 [2584 B] 254s Get:25 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jquery-typeahead all 2.11.0+dfsg1-3build1 [48.3 kB] 254s Get:26 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-jquery-ui all 1.13.2+dfsg-1build1 [251 kB] 254s Get:27 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-marked all 4.2.3+ds+~4.0.7-4 [36.2 kB] 254s Get:28 http://ftpmaster.internal/ubuntu resolute/main amd64 libjs-mathjax all 2.7.9+dfsg-1build1 [6017 kB] 254s Get:29 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-moment all 2.29.4+ds-1 [147 kB] 254s Get:30 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-requirejs all 2.3.8+ds+~2.1.37-1 [201 kB] 254s Get:31 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-requirejs-text all 2.0.12-2 [9732 B] 254s Get:32 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-text-encoding all 0.7.0-5 [140 kB] 254s Get:33 http://ftpmaster.internal/ubuntu resolute/universe amd64 libjs-xterm all 5.3.0-4 [475 kB] 254s Get:34 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-tornado amd64 6.5.4-0.1 [306 kB] 254s Get:35 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-terminado all 0.18.1-1 [13.2 kB] 254s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 libargon2-1 amd64 0~20190702+dfsg-5 [21.3 kB] 254s Get:37 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-ply all 3.11-10 [45.9 kB] 254s Get:38 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-pycparser all 2.23-1build1 [77.3 kB] 254s Get:39 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-cffi all 2.0.0-2 [75.5 kB] 254s Get:40 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-argon2-cffi-bindings amd64 25.1.0-2 [15.3 kB] 254s Get:41 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-argon2 amd64 25.1.0-2 [13.8 kB] 254s Get:42 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-comm all 0.2.1-1build1 [7148 B] 254s Get:43 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-coverage amd64 7.8.2+dfsg1-1ubuntu1 [159 kB] 254s Get:44 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-debugpy amd64 1.8.19+ds-1ubuntu1 [942 kB] 254s Get:45 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-decorator all 5.2.1-2 [28.1 kB] 254s Get:46 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-parso all 0.8.5-1 [68.0 kB] 254s Get:47 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 254s Get:48 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jedi all 0.19.1+ds1-1build1 [694 kB] 254s Get:49 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-matplotlib-inline all 0.2.1-1 [9462 B] 254s Get:50 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-wcwidth all 0.2.14+dfsg1-1build1 [26.5 kB] 254s Get:51 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-prompt-toolkit all 3.0.52-2 [258 kB] 254s Get:52 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-astroid all 4.0.2-1ubuntu1 [172 kB] 254s Get:53 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-asttokens all 3.0.1-1 [20.7 kB] 254s Get:54 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-executing all 2.2.1-0.1 [26.2 kB] 254s Get:55 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pure-eval all 0.2.3-1 [11.4 kB] 254s Get:56 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-stack-data all 0.6.3-3 [22.2 kB] 254s Get:57 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython all 8.35.0-2 [575 kB] 254s Get:58 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-psutil amd64 7.1.0-1ubuntu1 [191 kB] 254s Get:59 http://ftpmaster.internal/ubuntu resolute/universe amd64 libnorm1t64 amd64 1.5.9+dfsg-4 [158 kB] 254s Get:60 http://ftpmaster.internal/ubuntu resolute/universe amd64 libpgm-5.3-0t64 amd64 5.3.128~dfsg-2.1build2 [168 kB] 254s Get:61 http://ftpmaster.internal/ubuntu resolute/main amd64 libsodium23 amd64 1.0.18-2 [165 kB] 254s Get:62 http://ftpmaster.internal/ubuntu resolute/universe amd64 libzmq5 amd64 4.3.5-1build3 [262 kB] 254s Get:63 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-zmq amd64 27.1.0-1 [234 kB] 254s Get:64 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-client all 8.7.0-1 [78.5 kB] 254s Get:65 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nest-asyncio all 1.6.0-1 [6686 B] 254s Get:66 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipykernel all 6.30.1-1 [82.8 kB] 254s Get:67 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython-genutils all 0.2.0-7 [22.0 kB] 254s Get:68 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-tinycss2-common all 1.5.1-1 [47.3 kB] 254s Get:69 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-webencodings all 0.5.1-5build1 [11.7 kB] 254s Get:70 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-tinycss2 all 1.5.1-1 [23.3 kB] 254s Get:71 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-html5lib all 1.2-3 [90.6 kB] 254s Get:72 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-bleach all 6.3.0-1 [44.2 kB] 254s Get:73 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-soupsieve all 2.8.1-1 [33.7 kB] 254s Get:74 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-bs4 all 4.14.3-2build1 [84.8 kB] 254s Get:75 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-defusedxml all 0.7.1-3build1 [42.4 kB] 254s Get:76 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyterlab-pygments all 0.2.2-3build1 [6188 B] 254s Get:77 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-mistune all 3.1.4-1 [35.0 kB] 254s Get:78 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-fastjsonschema all 2.21.1-1 [20.4 kB] 254s Get:79 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbformat all 5.10.4-1 [39.2 kB] 254s Get:80 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbclient all 0.10.4-1 [22.6 kB] 254s Get:81 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pandocfilters all 1.5.1-1 [23.6 kB] 254s Get:82 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nbconvert all 7.16.6-1 [140 kB] 254s Get:83 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-prometheus-client all 0.21.1+ds1-1build1 [46.0 kB] 254s Get:84 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-send2trash all 1.8.3-1 [14.6 kB] 254s Get:85 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-notebook all 6.4.13-5ubuntu0.1 [1624 kB] 254s Get:86 http://ftpmaster.internal/ubuntu resolute/universe amd64 jupyter-notebook all 6.4.13-5ubuntu0.1 [10.4 kB] 254s Get:87 http://ftpmaster.internal/ubuntu resolute/main amd64 sphinx-rtd-theme-common all 3.0.2+dfsg-3 [1013 kB] 254s Get:88 http://ftpmaster.internal/ubuntu resolute/universe amd64 python-notebook-doc all 6.4.13-5ubuntu0.1 [2545 kB] 254s Get:89 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-all amd64 3.14.2-1 [890 B] 254s Get:90 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-2 [6962 B] 254s Get:91 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-2 [21.1 kB] 254s Get:92 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 9.0.2-2 [277 kB] 254s Get:93 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-requests-unixsocket all 1.0.1-1 [8620 B] 255s Fetched 35.2 MB in 1s (31.6 MB/s) 255s Selecting previously unselected package python3.13-minimal. 255s (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 ... 124926 files and directories currently installed.) 255s Preparing to unpack .../00-python3.13-minimal_3.13.11-1_amd64.deb ... 255s Unpacking python3.13-minimal (3.13.11-1) ... 255s Selecting previously unselected package fonts-lato. 255s Preparing to unpack .../01-fonts-lato_2.015-1build1_all.deb ... 255s Unpacking fonts-lato (2.015-1build1) ... 255s Selecting previously unselected package python3.13. 255s Preparing to unpack .../02-python3.13_3.13.11-1_amd64.deb ... 255s Unpacking python3.13 (3.13.11-1) ... 255s Selecting previously unselected package fonts-font-awesome. 255s Preparing to unpack .../03-fonts-font-awesome_5.0.10+really4.7.0~dfsg-4.1build1_all.deb ... 255s Unpacking fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 255s Selecting previously unselected package fonts-glyphicons-halflings. 255s Preparing to unpack .../04-fonts-glyphicons-halflings_1.009~3.4.1+dfsg-6_all.deb ... 255s Unpacking fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 255s Selecting previously unselected package fonts-mathjax. 255s Preparing to unpack .../05-fonts-mathjax_2.7.9+dfsg-1build1_all.deb ... 255s Unpacking fonts-mathjax (2.7.9+dfsg-1build1) ... 255s Selecting previously unselected package libbabeltrace1:amd64. 255s Preparing to unpack .../06-libbabeltrace1_1.5.11-5_amd64.deb ... 255s Unpacking libbabeltrace1:amd64 (1.5.11-5) ... 255s Selecting previously unselected package libipt2. 255s Preparing to unpack .../07-libipt2_2.1.2-3_amd64.deb ... 255s Unpacking libipt2 (2.1.2-3) ... 255s Selecting previously unselected package libsource-highlight-common. 255s Preparing to unpack .../08-libsource-highlight-common_3.1.9-4.3build2_all.deb ... 255s Unpacking libsource-highlight-common (3.1.9-4.3build2) ... 255s Selecting previously unselected package libsource-highlight4t64:amd64. 255s Preparing to unpack .../09-libsource-highlight4t64_3.1.9-4.3build2_amd64.deb ... 255s Unpacking libsource-highlight4t64:amd64 (3.1.9-4.3build2) ... 255s Selecting previously unselected package gdb. 255s Preparing to unpack .../10-gdb_16.3-5ubuntu1_amd64.deb ... 255s Unpacking gdb (16.3-5ubuntu1) ... 255s Selecting previously unselected package python3-platformdirs. 255s Preparing to unpack .../11-python3-platformdirs_4.5.1-1_all.deb ... 255s Unpacking python3-platformdirs (4.5.1-1) ... 255s Selecting previously unselected package python3-traitlets. 255s Preparing to unpack .../12-python3-traitlets_5.14.3+really5.14.3-2_all.deb ... 255s Unpacking python3-traitlets (5.14.3+really5.14.3-2) ... 255s Selecting previously unselected package python3-jupyter-core. 255s Preparing to unpack .../13-python3-jupyter-core_5.9.1-1_all.deb ... 255s Unpacking python3-jupyter-core (5.9.1-1) ... 255s Selecting previously unselected package jupyter-core. 255s Preparing to unpack .../14-jupyter-core_5.9.1-1_all.deb ... 255s Unpacking jupyter-core (5.9.1-1) ... 255s Selecting previously unselected package libjs-underscore. 255s Preparing to unpack .../15-libjs-underscore_1.13.7~dfsg+~1.13.0-1_all.deb ... 255s Unpacking libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 255s Selecting previously unselected package libjs-backbone. 255s Preparing to unpack .../16-libjs-backbone_1.4.1~dfsg+~1.4.15-3build1_all.deb ... 255s Unpacking libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 255s Selecting previously unselected package libjs-bootstrap. 255s Preparing to unpack .../17-libjs-bootstrap_3.4.1+dfsg-6_all.deb ... 255s Unpacking libjs-bootstrap (3.4.1+dfsg-6) ... 255s Selecting previously unselected package libjs-jquery. 255s Preparing to unpack .../18-libjs-jquery_3.7.1+dfsg+~3.5.33-1build1_all.deb ... 255s Unpacking libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 255s Selecting previously unselected package libjs-bootstrap-tour. 255s Preparing to unpack .../19-libjs-bootstrap-tour_0.12.0+dfsg-6_all.deb ... 255s Unpacking libjs-bootstrap-tour (0.12.0+dfsg-6) ... 255s Selecting previously unselected package libjs-codemirror. 255s Preparing to unpack .../20-libjs-codemirror_5.65.20+~cs5.83.25-1_all.deb ... 255s Unpacking libjs-codemirror (5.65.20+~cs5.83.25-1) ... 255s Selecting previously unselected package libjs-es6-promise. 255s Preparing to unpack .../21-libjs-es6-promise_4.2.8-12_all.deb ... 255s Unpacking libjs-es6-promise (4.2.8-12) ... 255s Selecting previously unselected package node-jed. 255s Preparing to unpack .../22-node-jed_1.1.1-4_all.deb ... 255s Unpacking node-jed (1.1.1-4) ... 255s Selecting previously unselected package libjs-jed. 255s Preparing to unpack .../23-libjs-jed_1.1.1-4_all.deb ... 255s Unpacking libjs-jed (1.1.1-4) ... 255s Selecting previously unselected package libjs-jquery-typeahead. 255s Preparing to unpack .../24-libjs-jquery-typeahead_2.11.0+dfsg1-3build1_all.deb ... 255s Unpacking libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 255s Selecting previously unselected package libjs-jquery-ui. 255s Preparing to unpack .../25-libjs-jquery-ui_1.13.2+dfsg-1build1_all.deb ... 255s Unpacking libjs-jquery-ui (1.13.2+dfsg-1build1) ... 255s Selecting previously unselected package libjs-marked. 255s Preparing to unpack .../26-libjs-marked_4.2.3+ds+~4.0.7-4_all.deb ... 255s Unpacking libjs-marked (4.2.3+ds+~4.0.7-4) ... 255s Selecting previously unselected package libjs-mathjax. 255s Preparing to unpack .../27-libjs-mathjax_2.7.9+dfsg-1build1_all.deb ... 255s Unpacking libjs-mathjax (2.7.9+dfsg-1build1) ... 256s Selecting previously unselected package libjs-moment. 256s Preparing to unpack .../28-libjs-moment_2.29.4+ds-1_all.deb ... 256s Unpacking libjs-moment (2.29.4+ds-1) ... 256s Selecting previously unselected package libjs-requirejs. 256s Preparing to unpack .../29-libjs-requirejs_2.3.8+ds+~2.1.37-1_all.deb ... 256s Unpacking libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 256s Selecting previously unselected package libjs-requirejs-text. 256s Preparing to unpack .../30-libjs-requirejs-text_2.0.12-2_all.deb ... 256s Unpacking libjs-requirejs-text (2.0.12-2) ... 256s Selecting previously unselected package libjs-text-encoding. 256s Preparing to unpack .../31-libjs-text-encoding_0.7.0-5_all.deb ... 256s Unpacking libjs-text-encoding (0.7.0-5) ... 256s Selecting previously unselected package libjs-xterm. 256s Preparing to unpack .../32-libjs-xterm_5.3.0-4_all.deb ... 256s Unpacking libjs-xterm (5.3.0-4) ... 256s Selecting previously unselected package python3-tornado. 256s Preparing to unpack .../33-python3-tornado_6.5.4-0.1_amd64.deb ... 256s Unpacking python3-tornado (6.5.4-0.1) ... 256s Selecting previously unselected package python3-terminado. 256s Preparing to unpack .../34-python3-terminado_0.18.1-1_all.deb ... 256s Unpacking python3-terminado (0.18.1-1) ... 256s Selecting previously unselected package libargon2-1:amd64. 256s Preparing to unpack .../35-libargon2-1_0~20190702+dfsg-5_amd64.deb ... 256s Unpacking libargon2-1:amd64 (0~20190702+dfsg-5) ... 256s Selecting previously unselected package python3-ply. 256s Preparing to unpack .../36-python3-ply_3.11-10_all.deb ... 256s Unpacking python3-ply (3.11-10) ... 256s Selecting previously unselected package python3-pycparser. 256s Preparing to unpack .../37-python3-pycparser_2.23-1build1_all.deb ... 256s Unpacking python3-pycparser (2.23-1build1) ... 256s Selecting previously unselected package python3-cffi. 256s Preparing to unpack .../38-python3-cffi_2.0.0-2_all.deb ... 256s Unpacking python3-cffi (2.0.0-2) ... 256s Selecting previously unselected package python3-argon2-cffi-bindings. 256s Preparing to unpack .../39-python3-argon2-cffi-bindings_25.1.0-2_amd64.deb ... 256s Unpacking python3-argon2-cffi-bindings (25.1.0-2) ... 256s Selecting previously unselected package python3-argon2. 256s Preparing to unpack .../40-python3-argon2_25.1.0-2_amd64.deb ... 256s Unpacking python3-argon2 (25.1.0-2) ... 256s Selecting previously unselected package python3-comm. 256s Preparing to unpack .../41-python3-comm_0.2.1-1build1_all.deb ... 256s Unpacking python3-comm (0.2.1-1build1) ... 256s Selecting previously unselected package python3-coverage. 256s Preparing to unpack .../42-python3-coverage_7.8.2+dfsg1-1ubuntu1_amd64.deb ... 256s Unpacking python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 256s Selecting previously unselected package python3-debugpy. 256s Preparing to unpack .../43-python3-debugpy_1.8.19+ds-1ubuntu1_amd64.deb ... 256s Unpacking python3-debugpy (1.8.19+ds-1ubuntu1) ... 256s Selecting previously unselected package python3-decorator. 256s Preparing to unpack .../44-python3-decorator_5.2.1-2_all.deb ... 256s Unpacking python3-decorator (5.2.1-2) ... 256s Selecting previously unselected package python3-parso. 256s Preparing to unpack .../45-python3-parso_0.8.5-1_all.deb ... 256s Unpacking python3-parso (0.8.5-1) ... 256s Selecting previously unselected package python3-typeshed. 256s Preparing to unpack .../46-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 256s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 256s Selecting previously unselected package python3-jedi. 256s Preparing to unpack .../47-python3-jedi_0.19.1+ds1-1build1_all.deb ... 256s Unpacking python3-jedi (0.19.1+ds1-1build1) ... 256s Selecting previously unselected package python3-matplotlib-inline. 256s Preparing to unpack .../48-python3-matplotlib-inline_0.2.1-1_all.deb ... 256s Unpacking python3-matplotlib-inline (0.2.1-1) ... 256s Selecting previously unselected package python3-wcwidth. 256s Preparing to unpack .../49-python3-wcwidth_0.2.14+dfsg1-1build1_all.deb ... 256s Unpacking python3-wcwidth (0.2.14+dfsg1-1build1) ... 256s Selecting previously unselected package python3-prompt-toolkit. 256s Preparing to unpack .../50-python3-prompt-toolkit_3.0.52-2_all.deb ... 256s Unpacking python3-prompt-toolkit (3.0.52-2) ... 256s Selecting previously unselected package python3-astroid. 256s Preparing to unpack .../51-python3-astroid_4.0.2-1ubuntu1_all.deb ... 256s Unpacking python3-astroid (4.0.2-1ubuntu1) ... 256s Selecting previously unselected package python3-asttokens. 256s Preparing to unpack .../52-python3-asttokens_3.0.1-1_all.deb ... 256s Unpacking python3-asttokens (3.0.1-1) ... 256s Selecting previously unselected package python3-executing. 256s Preparing to unpack .../53-python3-executing_2.2.1-0.1_all.deb ... 256s Unpacking python3-executing (2.2.1-0.1) ... 256s Selecting previously unselected package python3-pure-eval. 256s Preparing to unpack .../54-python3-pure-eval_0.2.3-1_all.deb ... 256s Unpacking python3-pure-eval (0.2.3-1) ... 256s Selecting previously unselected package python3-stack-data. 256s Preparing to unpack .../55-python3-stack-data_0.6.3-3_all.deb ... 256s Unpacking python3-stack-data (0.6.3-3) ... 256s Selecting previously unselected package python3-ipython. 256s Preparing to unpack .../56-python3-ipython_8.35.0-2_all.deb ... 256s Unpacking python3-ipython (8.35.0-2) ... 256s Selecting previously unselected package python3-psutil. 256s Preparing to unpack .../57-python3-psutil_7.1.0-1ubuntu1_amd64.deb ... 256s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 256s Selecting previously unselected package libnorm1t64:amd64. 256s Preparing to unpack .../58-libnorm1t64_1.5.9+dfsg-4_amd64.deb ... 256s Unpacking libnorm1t64:amd64 (1.5.9+dfsg-4) ... 256s Selecting previously unselected package libpgm-5.3-0t64:amd64. 256s Preparing to unpack .../59-libpgm-5.3-0t64_5.3.128~dfsg-2.1build2_amd64.deb ... 256s Unpacking libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build2) ... 256s Selecting previously unselected package libsodium23:amd64. 256s Preparing to unpack .../60-libsodium23_1.0.18-2_amd64.deb ... 256s Unpacking libsodium23:amd64 (1.0.18-2) ... 256s Selecting previously unselected package libzmq5:amd64. 256s Preparing to unpack .../61-libzmq5_4.3.5-1build3_amd64.deb ... 256s Unpacking libzmq5:amd64 (4.3.5-1build3) ... 256s Selecting previously unselected package python3-zmq. 256s Preparing to unpack .../62-python3-zmq_27.1.0-1_amd64.deb ... 256s Unpacking python3-zmq (27.1.0-1) ... 256s Selecting previously unselected package python3-jupyter-client. 256s Preparing to unpack .../63-python3-jupyter-client_8.7.0-1_all.deb ... 256s Unpacking python3-jupyter-client (8.7.0-1) ... 256s Selecting previously unselected package python3-nest-asyncio. 256s Preparing to unpack .../64-python3-nest-asyncio_1.6.0-1_all.deb ... 256s Unpacking python3-nest-asyncio (1.6.0-1) ... 256s Selecting previously unselected package python3-ipykernel. 256s Preparing to unpack .../65-python3-ipykernel_6.30.1-1_all.deb ... 256s Unpacking python3-ipykernel (6.30.1-1) ... 256s Selecting previously unselected package python3-ipython-genutils. 256s Preparing to unpack .../66-python3-ipython-genutils_0.2.0-7_all.deb ... 256s Unpacking python3-ipython-genutils (0.2.0-7) ... 256s Selecting previously unselected package python-tinycss2-common. 257s Preparing to unpack .../67-python-tinycss2-common_1.5.1-1_all.deb ... 257s Unpacking python-tinycss2-common (1.5.1-1) ... 257s Selecting previously unselected package python3-webencodings. 257s Preparing to unpack .../68-python3-webencodings_0.5.1-5build1_all.deb ... 257s Unpacking python3-webencodings (0.5.1-5build1) ... 257s Selecting previously unselected package python3-tinycss2. 257s Preparing to unpack .../69-python3-tinycss2_1.5.1-1_all.deb ... 257s Unpacking python3-tinycss2 (1.5.1-1) ... 257s Selecting previously unselected package python3-html5lib. 257s Preparing to unpack .../70-python3-html5lib_1.2-3_all.deb ... 257s Unpacking python3-html5lib (1.2-3) ... 257s Selecting previously unselected package python3-bleach. 257s Preparing to unpack .../71-python3-bleach_6.3.0-1_all.deb ... 257s Unpacking python3-bleach (6.3.0-1) ... 257s Selecting previously unselected package python3-soupsieve. 257s Preparing to unpack .../72-python3-soupsieve_2.8.1-1_all.deb ... 257s Unpacking python3-soupsieve (2.8.1-1) ... 257s Selecting previously unselected package python3-bs4. 257s Preparing to unpack .../73-python3-bs4_4.14.3-2build1_all.deb ... 257s Unpacking python3-bs4 (4.14.3-2build1) ... 257s Selecting previously unselected package python3-defusedxml. 257s Preparing to unpack .../74-python3-defusedxml_0.7.1-3build1_all.deb ... 257s Unpacking python3-defusedxml (0.7.1-3build1) ... 257s Selecting previously unselected package python3-jupyterlab-pygments. 257s Preparing to unpack .../75-python3-jupyterlab-pygments_0.2.2-3build1_all.deb ... 257s Unpacking python3-jupyterlab-pygments (0.2.2-3build1) ... 257s Selecting previously unselected package python3-mistune. 257s Preparing to unpack .../76-python3-mistune_3.1.4-1_all.deb ... 257s Unpacking python3-mistune (3.1.4-1) ... 257s Selecting previously unselected package python3-fastjsonschema. 257s Preparing to unpack .../77-python3-fastjsonschema_2.21.1-1_all.deb ... 257s Unpacking python3-fastjsonschema (2.21.1-1) ... 257s Selecting previously unselected package python3-nbformat. 257s Preparing to unpack .../78-python3-nbformat_5.10.4-1_all.deb ... 257s Unpacking python3-nbformat (5.10.4-1) ... 257s Selecting previously unselected package python3-nbclient. 257s Preparing to unpack .../79-python3-nbclient_0.10.4-1_all.deb ... 257s Unpacking python3-nbclient (0.10.4-1) ... 257s Selecting previously unselected package python3-pandocfilters. 257s Preparing to unpack .../80-python3-pandocfilters_1.5.1-1_all.deb ... 257s Unpacking python3-pandocfilters (1.5.1-1) ... 257s Selecting previously unselected package python3-nbconvert. 257s Preparing to unpack .../81-python3-nbconvert_7.16.6-1_all.deb ... 257s Unpacking python3-nbconvert (7.16.6-1) ... 257s Selecting previously unselected package python3-prometheus-client. 257s Preparing to unpack .../82-python3-prometheus-client_0.21.1+ds1-1build1_all.deb ... 257s Unpacking python3-prometheus-client (0.21.1+ds1-1build1) ... 257s Selecting previously unselected package python3-send2trash. 257s Preparing to unpack .../83-python3-send2trash_1.8.3-1_all.deb ... 257s Unpacking python3-send2trash (1.8.3-1) ... 257s Selecting previously unselected package python3-notebook. 257s Preparing to unpack .../84-python3-notebook_6.4.13-5ubuntu0.1_all.deb ... 257s Unpacking python3-notebook (6.4.13-5ubuntu0.1) ... 257s Selecting previously unselected package jupyter-notebook. 257s Preparing to unpack .../85-jupyter-notebook_6.4.13-5ubuntu0.1_all.deb ... 257s Unpacking jupyter-notebook (6.4.13-5ubuntu0.1) ... 257s Selecting previously unselected package sphinx-rtd-theme-common. 257s Preparing to unpack .../86-sphinx-rtd-theme-common_3.0.2+dfsg-3_all.deb ... 257s Unpacking sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 257s Selecting previously unselected package python-notebook-doc. 257s Preparing to unpack .../87-python-notebook-doc_6.4.13-5ubuntu0.1_all.deb ... 257s Unpacking python-notebook-doc (6.4.13-5ubuntu0.1) ... 257s Selecting previously unselected package python3-all. 257s Preparing to unpack .../88-python3-all_3.14.2-1_amd64.deb ... 257s Unpacking python3-all (3.14.2-1) ... 257s Selecting previously unselected package python3-iniconfig. 257s Preparing to unpack .../89-python3-iniconfig_2.1.0-2_all.deb ... 257s Unpacking python3-iniconfig (2.1.0-2) ... 257s Selecting previously unselected package python3-pluggy. 257s Preparing to unpack .../90-python3-pluggy_1.6.0-2_all.deb ... 257s Unpacking python3-pluggy (1.6.0-2) ... 257s Selecting previously unselected package python3-pytest. 257s Preparing to unpack .../91-python3-pytest_9.0.2-2_all.deb ... 257s Unpacking python3-pytest (9.0.2-2) ... 257s Selecting previously unselected package python3-requests-unixsocket. 257s Preparing to unpack .../92-python3-requests-unixsocket_1.0.1-1_all.deb ... 257s Unpacking python3-requests-unixsocket (1.0.1-1) ... 257s Setting up libjs-jquery-typeahead (2.11.0+dfsg1-3build1) ... 257s Setting up python3-iniconfig (2.1.0-2) ... 257s Setting up python3-tornado (6.5.4-0.1) ... 258s Setting up libnorm1t64:amd64 (1.5.9+dfsg-4) ... 258s Setting up python3-pure-eval (0.2.3-1) ... 258s Setting up python3-send2trash (1.8.3-1) ... 258s Setting up fonts-lato (2.015-1build1) ... 258s Setting up fonts-mathjax (2.7.9+dfsg-1build1) ... 258s Setting up libsodium23:amd64 (1.0.18-2) ... 258s Setting up libjs-mathjax (2.7.9+dfsg-1build1) ... 258s Setting up libjs-requirejs-text (2.0.12-2) ... 258s Setting up python3-parso (0.8.5-1) ... 258s Setting up python3-defusedxml (0.7.1-3build1) ... 258s Setting up python3-ipython-genutils (0.2.0-7) ... 258s Setting up fonts-glyphicons-halflings (1.009~3.4.1+dfsg-6) ... 258s Setting up libargon2-1:amd64 (0~20190702+dfsg-5) ... 258s Setting up python3-ply (3.11-10) ... 258s Setting up libjs-moment (2.29.4+ds-1) ... 258s Setting up python3-pandocfilters (1.5.1-1) ... 258s Setting up libjs-requirejs (2.3.8+ds+~2.1.37-1) ... 258s Setting up libjs-es6-promise (4.2.8-12) ... 258s Setting up libjs-text-encoding (0.7.0-5) ... 258s Setting up python3-webencodings (0.5.1-5build1) ... 259s Setting up python3-platformdirs (4.5.1-1) ... 259s Setting up python3-psutil (7.1.0-1ubuntu1) ... 259s Setting up libsource-highlight-common (3.1.9-4.3build2) ... 259s Setting up python3-pycparser (2.23-1build1) ... 259s Setting up python3-requests-unixsocket (1.0.1-1) ... 259s Setting up python3-jupyterlab-pygments (0.2.2-3build1) ... 260s Setting up libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build2) ... 260s Setting up python3-decorator (5.2.1-2) ... 260s Setting up python3-wcwidth (0.2.14+dfsg1-1build1) ... 260s Setting up node-jed (1.1.1-4) ... 260s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 260s Setting up libjs-xterm (5.3.0-4) ... 260s Setting up python3-nest-asyncio (1.6.0-1) ... 260s Setting up libjs-codemirror (5.65.20+~cs5.83.25-1) ... 260s Setting up libjs-jed (1.1.1-4) ... 260s Setting up libipt2 (2.1.2-3) ... 260s Setting up python3-html5lib (1.2-3) ... 260s Setting up libbabeltrace1:amd64 (1.5.11-5) ... 260s Setting up python3-pluggy (1.6.0-2) ... 260s Setting up python3-fastjsonschema (2.21.1-1) ... 260s Setting up python3-terminado (0.18.1-1) ... 261s Setting up python3-astroid (4.0.2-1ubuntu1) ... 261s Setting up python3-traitlets (5.14.3+really5.14.3-2) ... 261s Setting up python-tinycss2-common (1.5.1-1) ... 261s Setting up python3.13-minimal (3.13.11-1) ... 262s Setting up libjs-jquery (3.7.1+dfsg+~3.5.33-1build1) ... 262s Setting up python3-mistune (3.1.4-1) ... 262s Setting up python3-soupsieve (2.8.1-1) ... 262s Setting up fonts-font-awesome (5.0.10+really4.7.0~dfsg-4.1build1) ... 262s Setting up sphinx-rtd-theme-common (3.0.2+dfsg-3) ... 262s Setting up python3-jupyter-core (5.9.1-1) ... 262s Setting up libjs-bootstrap (3.4.1+dfsg-6) ... 262s Setting up libjs-underscore (1.13.7~dfsg+~1.13.0-1) ... 262s Setting up libjs-marked (4.2.3+ds+~4.0.7-4) ... 262s Setting up python3-prompt-toolkit (3.0.52-2) ... 263s Setting up python3-tinycss2 (1.5.1-1) ... 263s Setting up libzmq5:amd64 (4.3.5-1build3) ... 263s Setting up python3-jedi (0.19.1+ds1-1build1) ... 263s Setting up python3.13 (3.13.11-1) ... 264s Setting up python3-asttokens (3.0.1-1) ... 264s Setting up python3-pytest (9.0.2-2) ... 264s Setting up python3-cffi (2.0.0-2) ... 264s Setting up libjs-bootstrap-tour (0.12.0+dfsg-6) ... 264s Setting up python3-all (3.14.2-1) ... 265s Setting up python3-coverage (7.8.2+dfsg1-1ubuntu1) ... 265s Setting up libjs-backbone (1.4.1~dfsg+~1.4.15-3build1) ... 265s Setting up libsource-highlight4t64:amd64 (3.1.9-4.3build2) ... 265s Setting up python3-nbformat (5.10.4-1) ... 265s Setting up python-notebook-doc (6.4.13-5ubuntu0.1) ... 265s Setting up python3-bs4 (4.14.3-2build1) ... 265s Setting up python3-bleach (6.3.0-1) ... 265s Setting up python3-matplotlib-inline (0.2.1-1) ... 265s Setting up python3-comm (0.2.1-1build1) ... 265s Setting up python3-prometheus-client (0.21.1+ds1-1build1) ... 266s Setting up gdb (16.3-5ubuntu1) ... 266s Setting up libjs-jquery-ui (1.13.2+dfsg-1build1) ... 266s Setting up python3-executing (2.2.1-0.1) ... 266s Setting up python3-zmq (27.1.0-1) ... 266s Setting up python3-argon2-cffi-bindings (25.1.0-2) ... 266s Setting up python3-argon2 (25.1.0-2) ... 266s Setting up python3-jupyter-client (8.7.0-1) ... 266s Setting up jupyter-core (5.9.1-1) ... 266s Setting up python3-stack-data (0.6.3-3) ... 266s Setting up python3-debugpy (1.8.19+ds-1ubuntu1) ... 267s Setting up python3-nbclient (0.10.4-1) ... 267s Setting up python3-ipython (8.35.0-2) ... 268s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 268s return result 268s Setting up python3-ipykernel (6.30.1-1) ... 268s Setting up python3-nbconvert (7.16.6-1) ... 268s Setting up python3-notebook (6.4.13-5ubuntu0.1) ... 269s Setting up jupyter-notebook (6.4.13-5ubuntu0.1) ... 269s Processing triggers for systemd (259-1ubuntu2) ... 269s Processing triggers for man-db (2.13.1-1) ... 269s Processing triggers for libc-bin (2.42-2ubuntu4) ... 271s autopkgtest [02:44:11]: test environment configured for cross building 271s autopkgtest [02:44:11]: test pytest: [----------------------- 271s Testing with python3.13 271s *** STARTING RUN 1: python3.13 -m pytest --pyargs notebook -rsfE --ignore=/usr/lib/python3/dist-packages/notebook/tests/selenium --deselect=services/kernels/tests/test_kernels_api.py::KernelAPITest::test_connections 273s ============================= test session starts ============================== 273s platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 273s rootdir: /tmp/autopkgtest.vwY63z/autopkgtest_tmp 273s plugins: typeguard-4.4.4 273s collected 330 items / 6 deselected / 324 selected 273s 273s auth/tests/test_login.py .. [ 0%] 274s auth/tests/test_security.py .... [ 1%] 274s bundler/tests/test_bundler_api.py ..... [ 3%] 274s bundler/tests/test_bundler_tools.py ............. [ 7%] 274s bundler/tests/test_bundlerextension.py ... [ 8%] 274s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 274s services/api/tests/test_api.py ... [ 11%] 274s services/config/tests/test_config_api.py ... [ 12%] 274s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 275s ................s...........ss..s......................... [ 38%] 275s services/contents/tests/test_fileio.py ... [ 39%] 275s services/contents/tests/test_largefilemanager.py . [ 39%] 275s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 275s .... [ 50%] 285s services/kernels/tests/test_kernels_api.py ........... [ 54%] 285s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 286s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 286s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 291s services/sessions/tests/test_sessions_api.py ...................... [ 66%] 295s terminal/tests/test_terminals_api.py ........ [ 68%] 295s tests/test_config_manager.py . [ 68%] 295s tests/test_files.py ..... [ 70%] 296s tests/test_gateway.py ...... [ 72%] 296s tests/test_i18n.py . [ 72%] 296s tests/test_log.py . [ 72%] 296s tests/test_nbextensions.py ................................... [ 83%] 297s tests/test_notebookapp.py .......................... [ 91%] 297s tests/test_paths.py ... [ 92%] 297s tests/test_serialize.py .. [ 93%] 297s tests/test_serverextensions.py ..... [ 94%] 297s tests/test_traittypes.py ........... [ 98%] 298s tests/test_utils.py ....s [ 99%] 298s tree/tests/test_tree_handler.py . [100%] 298s 298s =============================== warnings summary =============================== 298s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 298s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 298s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 298s return LooseVersion(v) >= LooseVersion(check) 298s 298s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 298s auth/tests/test_login.py: 2 warnings 298s bundler/tests/test_bundler_api.py: 2 warnings 298s services/api/tests/test_api.py: 4 warnings 298s services/config/tests/test_config_api.py: 7 warnings 298s services/contents/tests/test_contents_api.py: 318 warnings 298s services/kernels/tests/test_kernels_api.py: 99 warnings 298s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 298s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 298s services/sessions/tests/test_sessionmanager.py: 9 warnings 298s services/sessions/tests/test_sessions_api.py: 128 warnings 298s terminal/tests/test_terminals_api.py: 50 warnings 298s tests/test_files.py: 2 warnings 298s tests/test_gateway.py: 21 warnings 298s tests/test_notebookapp.py: 8 warnings 298s tests/test_paths.py: 2 warnings 298s tree/tests/test_tree_handler.py: 2 warnings 298s /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). 298s dt = unaware(*args, **kwargs) 298s 298s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 298s /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 298s pytestmark = pytest.mark.integration_tests 298s 298s bundler/tests/test_bundler_api.py: 6 warnings 298s services/api/tests/test_api.py: 6 warnings 298s services/contents/tests/test_contents_api.py: 806 warnings 298s services/contents/tests/test_largefilemanager.py: 42 warnings 298s services/contents/tests/test_manager.py: 526 warnings 298s tests/test_files.py: 8 warnings 298s tree/tests/test_tree_handler.py: 6 warnings 298s /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). 298s dt = unaware(*args, **kwargs) 298s 298s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 298s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 298s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 298s loop.make_current() 298s 298s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 298s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 298s /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/tmp5_qxedco/data/kernels/sample 2 298s d = self.find_kernel_specs() 298s 298s services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 298s /usr/lib/python3/dist-packages/_pytest/unraisableexception.py:67: PytestUnraisableExceptionWarning: Exception ignored in: 298s 298s Traceback (most recent call last): 298s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 68, in __del__ 298s self.close() 298s ~~~~~~~~~~^^ 298s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 63, in close 298s self._cursor.close() 298s ~~~~~~~~~~~~~~~~~~^^ 298s sqlite3.ProgrammingError: SQLite objects created in a thread can only be used in that same thread. The object was created in thread id 126415750283776 and this is thread id 126415557084864. 298s 298s Enable tracemalloc to get traceback where the object was allocated. 298s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 298s warnings.warn(pytest.PytestUnraisableExceptionWarning(msg)) 298s 298s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 298s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 298s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 298s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 298s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 298s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 298s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 298s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 298s /usr/lib/python3.13/pty.py:95: DeprecationWarning: This process (pid=3044) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 298s pid, fd = os.forkpty() 298s 298s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 298s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 298s /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). 298s dt = datetime.utcnow().isoformat() + 'Z' 298s 298s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 298s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 298s tests/test_nbextensions.py::TestInstallNBExtension::test_install_tar 298s /usr/lib/python3/dist-packages/notebook/nbextensions.py:154: DeprecationWarning: Python 3.14 will, by default, filter extracted tar archives and reject files or modify their metadata. Use the filter argument to control this behavior. 298s archive.extractall(nbext) 298s 298s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 298s =========================== short test summary info ============================ 298s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 298s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 298s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 298s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 298s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 298s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 298s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 298s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 298s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 298s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 298s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 298s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 298s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 298s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 298s ======== 304 passed, 20 skipped, 6 deselected, 2086 warnings in 26.76s ========= 298s *** END OF RUN 1: ALL TESTS RUN HAVE NOW PASSED/XFAILED *** 298s Testing with python3.14 299s *** 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 300s ============================= test session starts ============================== 300s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 300s rootdir: /tmp/autopkgtest.vwY63z/autopkgtest_tmp 300s plugins: typeguard-4.4.4 300s collected 330 items / 6 deselected / 324 selected 300s 300s auth/tests/test_login.py .. [ 0%] 301s auth/tests/test_security.py .... [ 1%] 301s bundler/tests/test_bundler_api.py ..... [ 3%] 301s bundler/tests/test_bundler_tools.py ............. [ 7%] 301s bundler/tests/test_bundlerextension.py ... [ 8%] 301s nbconvert/tests/test_nbconvert_handlers.py ssssss [ 10%] 301s services/api/tests/test_api.py ... [ 11%] 301s services/config/tests/test_config_api.py ... [ 12%] 301s services/contents/tests/test_contents_api.py .s..........ss..s.......... [ 20%] 302s ................s...........ss..s......................... [ 38%] 302s services/contents/tests/test_fileio.py ... [ 39%] 302s services/contents/tests/test_largefilemanager.py . [ 39%] 302s services/contents/tests/test_manager.py .....s........ss..........ss.... [ 49%] 302s .... [ 50%] 312s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF.. [ 54%] 312s services/kernelspecs/tests/test_kernelspecs_api.py ....... [ 56%] 313s services/nbconvert/tests/test_nbconvert_api.py . [ 56%] 313s services/sessions/tests/test_sessionmanager.py ......... [ 59%] 314s services/sessions/tests/test_sessions_api.py FFFFFE.FEFE.FFFFFFFE.FEFE.F [ 65%] 314s F [ 66%] 318s terminal/tests/test_terminals_api.py ........ [ 68%] 318s tests/test_config_manager.py . [ 68%] 318s tests/test_files.py ..... [ 70%] 318s tests/test_gateway.py ...... [ 72%] 318s tests/test_i18n.py . [ 72%] 318s tests/test_log.py . [ 72%] 319s tests/test_nbextensions.py ................................... [ 83%] 319s tests/test_notebookapp.py .......................... [ 91%] 319s tests/test_paths.py ... [ 92%] 319s tests/test_serialize.py .. [ 93%] 320s tests/test_serverextensions.py ..... [ 94%] 320s tests/test_traittypes.py ........... [ 98%] 320s tests/test_utils.py ....s [ 99%] 321s tree/tests/test_tree_handler.py . [100%] 321s 321s ==================================== ERRORS ==================================== 321s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 321s 321s self = 321s 321s def tearDown(self): 321s for k in self.kern_api.list().json(): 321s > self.kern_api.shutdown(k['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/e748f0a5-c923-40cc-a4eb-9c5c50a88002 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ----------------------------- Captured stderr call ----------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 321s from pathlib import Path 321s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 321s from glob import _StringGlobber, _no_recurse_symlinks 321s File "/usr/lib/python3.14/glob.py", line 5, in 321s import re 321s File "/usr/lib/python3.14/re/__init__.py", line 126, in 321s from . import _compiler, _parser 321s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 321s from . import _parser 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 321s import jupyter_client 321s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 321s from .asynchronous import AsyncKernelClient 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 321s from .client import AsyncKernelClient # noqa 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 321s import zmq.asyncio 321s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 321s import asyncio 321s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 321s from .base_events import * 321s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 321s import ssl 321s File "/usr/lib/python3.14/ssl.py", line 100, in 321s import _ssl # if we can't import it, let the error propagate 321s ^^^^^^^^^^^ 321s KeyboardInterrupt 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzkb7nx7x/runtime/kernel-e748f0a5-c923-40cc-a4eb-9c5c50a88002.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41177 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56131 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: e748f0a5-c923-40cc-a4eb-9c5c50a88002, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.800000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzkb7nx7x/runtime/kernel-4285f83a-56c7-4d32-8555-c734f4115d7a.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42713 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50521 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4285f83a-56c7-4d32-8555-c734f4115d7a, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.580000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 4285f83a-56c7-4d32-8555-c734f4115d7a 321s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/4285f83a-56c7-4d32-8555-c734f4115d7a/interrupt (::1) 1.340000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 321s yield maybe_future(km.restart_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 321s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 321s await ensure_async(kernel.restart_kernel(now=now)) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 321s await self._async_shutdown_kernel(now=now, restart=True) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/4285f83a-56c7-4d32-8555-c734f4115d7a/restart (::1) 4.890000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e748f0a5-c923-40cc-a4eb-9c5c50a88002 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e748f0a5-c923-40cc-a4eb-9c5c50a88002 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e748f0a5-c923-40cc-a4eb-9c5c50a88002 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e748f0a5-c923-40cc-a4eb-9c5c50a88002', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 321s yielded = ctx_run(next, result) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e748f0a5-c923-40cc-a4eb-9c5c50a88002 (::1) 3.370000ms referer=None 321s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 321s 321s self = 321s 321s def tearDown(self): 321s for k in self.kern_api.list().json(): 321s > self.kern_api.shutdown(k['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/872b88b4-fc8c-4aef-ad03-2b8cff589c54 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ----------------------------- Captured stderr call ----------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 321s from pathlib import Path 321s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 321s from glob import _StringGlobber, _no_recurse_symlinks 321s File "/usr/lib/python3.14/glob.py", line 5, in 321s import re 321s File "/usr/lib/python3.14/re/__init__.py", line 125, in 321s import enum 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 321s import jupyter_client 321s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 321s from .asynchronous import AsyncKernelClient 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 321s from .client import AsyncKernelClient # noqa 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 321s import zmq.asyncio 321s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 321s import asyncio 321s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 321s from .base_events import * 321s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 321s import ssl 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqg2uxsia/runtime/kernel-872b88b4-fc8c-4aef-ad03-2b8cff589c54.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44829 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40119 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 872b88b4-fc8c-4aef-ad03-2b8cff589c54, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.230000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqg2uxsia/runtime/kernel-deb28424-9c24-42da-8e19-38b244901454.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37695 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40245 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: deb28424-9c24-42da-8e19-38b244901454, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.150000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: deb28424-9c24-42da-8e19-38b244901454 321s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/deb28424-9c24-42da-8e19-38b244901454/interrupt (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 321s yield maybe_future(km.restart_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 321s result = coro.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 321s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 321s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 321s yield self # This tells Task to wait for completion. 321s ^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 321s await ensure_async(kernel.restart_kernel(now=now)) 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 321s await self._async_shutdown_kernel(now=now, restart=True) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/deb28424-9c24-42da-8e19-38b244901454/restart (::1) 4.840000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 872b88b4-fc8c-4aef-ad03-2b8cff589c54 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 872b88b4-fc8c-4aef-ad03-2b8cff589c54 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/872b88b4-fc8c-4aef-ad03-2b8cff589c54 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/872b88b4-fc8c-4aef-ad03-2b8cff589c54', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/872b88b4-fc8c-4aef-ad03-2b8cff589c54 (::1) 3.460000ms referer=None 321s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/59fec7b2-c88b-46eb-bb12-806ec082fc78 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-85d1ca2d-9551-4450-82d1-358637af5d7b.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60321 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54975 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 85d1ca2d-9551-4450-82d1-358637af5d7b, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.430000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.540000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f68a1450-1b6f-47ca-83e1-83aa393b2d86 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f68a1450-1b6f-47ca-83e1-83aa393b2d86 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2a4fa88a-5646-4c09-ad2d-d61c31eb64cf (::1) 0.580000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85d1ca2d-9551-4450-82d1-358637af5d7b 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85d1ca2d-9551-4450-82d1-358637af5d7b 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/59fec7b2-c88b-46eb-bb12-806ec082fc78 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/59fec7b2-c88b-46eb-bb12-806ec082fc78', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/59fec7b2-c88b-46eb-bb12-806ec082fc78 (::1) 3.950000ms referer=None 321s __________ ERROR at teardown of SessionAPITest.test_modify_kernel_id ___________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ----------------------------- Captured stderr call ----------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 321s import jupyter_client 321s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 321s from .asynchronous import AsyncKernelClient 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 321s from .client import AsyncKernelClient # noqa 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 321s import zmq.asyncio 321s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 321s import asyncio 321s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 321s from .base_events import * 321s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 321s import concurrent.futures 321s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 321s from concurrent.futures._base import (FIRST_COMPLETED, 321s ...<9 lines>... 321s as_completed) 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 321s import logging 321s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 321s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 321s File "/usr/lib/python3.14/traceback.py", line 7, in 321s import textwrap 321s File "/usr/lib/python3.14/textwrap.py", line 17, in 321s class TextWrapper: 321s ...<350 lines>... 321s return "\n".join(self.wrap(text)) 321s File "/usr/lib/python3.14/textwrap.py", line 78, in TextWrapper 321s wordsep_re = re.compile(r''' 321s ( # any whitespace 321s ...<14 lines>... 321s 'ws': whitespace, 'nws': nowhitespace}, 321s re.VERBOSE) 321s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 321s return _compile(pattern, flags) 321s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 321s p = _compiler.compile(pattern, flags) 321s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 321s p = _parser.parse(p, flags) 321s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 321s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 321s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 321s itemsappend(_parse(source, state, verbose, nested + 1, 321s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s not nested and not items)) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 321s p = _parse_sub(source, state, sub_verbose, nested + 1) 321s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 321s itemsappend(_parse(source, state, verbose, nested + 1, 321s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s not nested and not items)) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/re/_parser.py", line 689, in _parse 321s if item[0][0] in _REPEATCODES: 321s ~~~~^^^ 321s File "/usr/lib/python3.14/re/_parser.py", line 168, in __getitem__ 321s def __getitem__(self, index): 321s 321s KeyboardInterrupt 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-a924e9e3-96e5-4710-993a-86b01133c2cf.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57523 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47059 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: a924e9e3-96e5-4710-993a-86b01133c2cf, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.710000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-23fbf235-7640-40c9-afcc-d79807e7a063.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41181 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37045 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 23fbf235-7640-40c9-afcc-d79807e7a063, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.940000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a924e9e3-96e5-4710-993a-86b01133c2cf 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a924e9e3-96e5-4710-993a-86b01133c2cf 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 321s km.shutdown_kernel(before['kernel']['id']) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 8.540000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.370000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23fbf235-7640-40c9-afcc-d79807e7a063 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23fbf235-7640-40c9-afcc-d79807e7a063 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 10.190000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 321s from typing import TYPE_CHECKING, Any 321s File "", line 1371, in _find_and_load 321s File "", line 1333, in _find_and_load_unlocked 321s File "", line 1267, in _find_spec 321s File "", line 1292, in find_spec 321s File "", line 1266, in _get_spec 321s File "", line 1365, in find_spec 321s File "", line 152, in _path_stat 321s KeyboardInterrupt 321s _________ ERROR at teardown of SessionAPITest.test_modify_kernel_name __________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-6dd351b3-4ca5-419b-a242-90e5319b65e8.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37883 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57333 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6dd351b3-4ca5-419b-a242-90e5319b65e8, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23fbf235-7640-40c9-afcc-d79807e7a063 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23fbf235-7640-40c9-afcc-d79807e7a063 321s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 15.110000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.950000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dd351b3-4ca5-419b-a242-90e5319b65e8 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dd351b3-4ca5-419b-a242-90e5319b65e8 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 3.830000ms referer=None 321s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/26e7618a-3eef-48e0-bf2d-eeb7c483ffc7 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-98853c17-1cc8-4db7-9481-02b5df3b6080.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50895 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44417 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 98853c17-1cc8-4db7-9481-02b5df3b6080, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.060000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9afc658-b025-492e-8ac2-57328efc71ed 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9afc658-b025-492e-8ac2-57328efc71ed 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9bae794d-607e-4eb1-a879-d7b12d4dfa65 (::1) 1.240000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 98853c17-1cc8-4db7-9481-02b5df3b6080 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98853c17-1cc8-4db7-9481-02b5df3b6080 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/26e7618a-3eef-48e0-bf2d-eeb7c483ffc7 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/26e7618a-3eef-48e0-bf2d-eeb7c483ffc7', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/26e7618a-3eef-48e0-bf2d-eeb7c483ffc7 (::1) 3.640000ms referer=None 321s ________ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_id ________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ----------------------------- Captured stderr call ----------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 321s import jupyter_client 321s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 321s from .asynchronous import AsyncKernelClient 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 321s from .client import AsyncKernelClient # noqa 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 321s import zmq.asyncio 321s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 321s from zmq import sugar 321s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 321s from zmq.sugar import context, frame, poll, socket, tracker, version 321s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 321s from .socket import Socket, SyncSocket 321s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 10, in 321s import random 321s File "/usr/lib/python3.14/random.py", line 61, in 321s from bisect import bisect as _bisect 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s Exception ignored while calling weakref callback .KeyedRef.remove at 0x7102929d45c0>: 321s Traceback (most recent call last): 321s File "", line 91, in remove 321s KeyboardInterrupt: 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-36ac1645-dbf1-412a-a311-ff82e02f4aaf.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51387 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42697 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 36ac1645-dbf1-412a-a311-ff82e02f4aaf, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.470000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-8a179df3-539e-4251-90f1-ed04755f3b71.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59711 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49279 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8a179df3-539e-4251-90f1-ed04755f3b71, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.770000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 36ac1645-dbf1-412a-a311-ff82e02f4aaf 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36ac1645-dbf1-412a-a311-ff82e02f4aaf 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 321s yield maybe_future( 321s km.shutdown_kernel(before['kernel']['id']) 321s ) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 7.870000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.220000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a179df3-539e-4251-90f1-ed04755f3b71 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a179df3-539e-4251-90f1-ed04755f3b71 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 6.910000ms referer=None 321s _______ ERROR at teardown of AsyncSessionAPITest.test_modify_kernel_name _______ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.630000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-06582d46-5cdd-47b2-b742-8869e55cb7ea.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37413 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55071 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 06582d46-5cdd-47b2-b742-8869e55cb7ea, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a179df3-539e-4251-90f1-ed04755f3b71 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a179df3-539e-4251-90f1-ed04755f3b71 321s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 14.530000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06582d46-5cdd-47b2-b742-8869e55cb7ea 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06582d46-5cdd-47b2-b742-8869e55cb7ea 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 7.960000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 46, in 321s import locale 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s =================================== FAILURES =================================== 321s ______________________ KernelAPITest.test_default_kernel _______________________ 321s 321s self = 321s 321s def tearDown(self): 321s for k in self.kern_api.list().json(): 321s > self.kern_api.shutdown(k['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/cc5eea28-fd65-4214-aef9-303a96a96e73 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log setup ------------------------------ 321s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpzkb7nx7x/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpzkb7nx7x/etc/jupyter'] for config files 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzkb7nx7x/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpzkb7nx7x/config 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzkb7nx7x/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpzkb7nx7x/config 321s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpzkb7nx7x/notebooks 321s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 321s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 321s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 321s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 321s WARNING NotebookApp:handlers.py:612 Forbidden 321s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.360000ms referer=None 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzkb7nx7x/runtime/kernel-cc5eea28-fd65-4214-aef9-303a96a96e73.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60095 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57867 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: cc5eea28-fd65-4214-aef9-303a96a96e73, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 34.940000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.800000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc5eea28-fd65-4214-aef9-303a96a96e73 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc5eea28-fd65-4214-aef9-303a96a96e73 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/cc5eea28-fd65-4214-aef9-303a96a96e73 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/cc5eea28-fd65-4214-aef9-303a96a96e73', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 321s yielded = ctx_run(next, result) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 321s import json 321s File "/usr/lib/python3.14/json/__init__.py", line 107, in 321s from .encoder import JSONEncoder 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 876, in get_code 321s File "", line 481, in _validate_timestamp_pyc 321s File "", line 89, in _unpack_uint32 321s KeyboardInterrupt 321s ______________________ KernelAPITest.test_kernel_handler _______________________ 321s 321s self = 321s 321s def test_kernel_handler(self): 321s # GET kernel with given id 321s kid = self.kern_api.start().json()['id'] 321s r = self.kern_api.get(kid) 321s kern1 = r.json() 321s self.assertEqual(r.status_code, 200) 321s assert isinstance(kern1, dict) 321s self.assertIn('id', kern1) 321s self.assertEqual(kern1['id'], kid) 321s 321s # Request a bad kernel id and check that a JSON 321s # message is returned! 321s bad_id = '111-111-111-111-111' 321s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 321s self.kern_api.get(bad_id) 321s 321s # DELETE kernel with id 321s > r = self.kern_api.shutdown(kid) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzkb7nx7x/runtime/kernel-ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48077 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41849 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.250000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a (::1) 1.070000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s 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 321s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 321s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.450000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 321s yielded = ctx_run(next, result) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a (::1) 4.370000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cc5eea28-fd65-4214-aef9-303a96a96e73 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cc5eea28-fd65-4214-aef9-303a96a96e73 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cc5eea28-fd65-4214-aef9-303a96a96e73 (::1) 1.230000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ecb2fc61-52df-40f3-9a3b-ffb5dd665a8a (::1) 0.450000ms 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 321s import json 321s File "/usr/lib/python3.14/json/__init__.py", line 106, in 321s from .decoder import JSONDecoder, JSONDecodeError 321s File "/usr/lib/python3.14/json/decoder.py", line 53, in 321s HEXDIGITS = re.compile(r'[0-9A-Fa-f]{4}', FLAGS) 321s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 321s return _compile(pattern, flags) 321s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 321s p = _compiler.compile(pattern, flags) 321s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 321s p = _parser.parse(p, flags) 321s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 321s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 321s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 321s itemsappend(_parse(source, state, verbose, nested + 1, 321s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s not nested and not items)) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/re/_parser.py", line 669, in _parse 321s min = int(lo) 321s KeyboardInterrupt 321s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 321s 321s self = 321s 321s def test_main_kernel_handler(self): 321s # POST request 321s r = self.kern_api.start() 321s kern1 = r.json() 321s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 321s self.assertEqual(r.status_code, 201) 321s self.assertIsInstance(kern1, dict) 321s 321s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 321s expected_csp = '; '.join([ 321s "frame-ancestors 'self'", 321s 'report-uri ' + report_uri, 321s "default-src 'none'" 321s ]) 321s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 321s 321s # GET request 321s r = self.kern_api.list() 321s self.assertEqual(r.status_code, 200) 321s assert isinstance(r.json(), list) 321s self.assertEqual(r.json()[0]['id'], kern1['id']) 321s self.assertEqual(r.json()[0]['name'], kern1['name']) 321s 321s # create another kernel and check that they both are added to the 321s # list of kernels from a GET request 321s kern2 = self.kern_api.start().json() 321s assert isinstance(kern2, dict) 321s r = self.kern_api.list() 321s kernels = r.json() 321s self.assertEqual(r.status_code, 200) 321s assert isinstance(kernels, list) 321s self.assertEqual(len(kernels), 2) 321s 321s # Interrupt a kernel 321s r = self.kern_api.interrupt(kern2['id']) 321s self.assertEqual(r.status_code, 204) 321s 321s # Restart a kernel 321s > r = self.kern_api.restart(kern2['id']) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 321s return self._req('POST', url_path_join(id, 'restart')) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/4285f83a-56c7-4d32-8555-c734f4115d7a/restart 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ----------------------------- Captured stderr call ----------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 321s from pathlib import Path 321s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 321s from glob import _StringGlobber, _no_recurse_symlinks 321s File "/usr/lib/python3.14/glob.py", line 5, in 321s import re 321s File "/usr/lib/python3.14/re/__init__.py", line 126, in 321s from . import _compiler, _parser 321s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 321s from . import _parser 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 321s import jupyter_client 321s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 321s from .asynchronous import AsyncKernelClient 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 321s from .client import AsyncKernelClient # noqa 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 321s import zmq.asyncio 321s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 321s import asyncio 321s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 321s from .base_events import * 321s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 321s import ssl 321s File "/usr/lib/python3.14/ssl.py", line 100, in 321s import _ssl # if we can't import it, let the error propagate 321s ^^^^^^^^^^^ 321s KeyboardInterrupt 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzkb7nx7x/runtime/kernel-e748f0a5-c923-40cc-a4eb-9c5c50a88002.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41177 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56131 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: e748f0a5-c923-40cc-a4eb-9c5c50a88002, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.800000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpzkb7nx7x/runtime/kernel-4285f83a-56c7-4d32-8555-c734f4115d7a.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42713 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50521 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4285f83a-56c7-4d32-8555-c734f4115d7a, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.580000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 4285f83a-56c7-4d32-8555-c734f4115d7a 321s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/4285f83a-56c7-4d32-8555-c734f4115d7a/interrupt (::1) 1.340000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 321s yield maybe_future(km.restart_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 321s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 321s await ensure_async(kernel.restart_kernel(now=now)) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 321s await self._async_shutdown_kernel(now=now, restart=True) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/4285f83a-56c7-4d32-8555-c734f4115d7a/restart (::1) 4.890000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e748f0a5-c923-40cc-a4eb-9c5c50a88002 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e748f0a5-c923-40cc-a4eb-9c5c50a88002 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/e748f0a5-c923-40cc-a4eb-9c5c50a88002 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/e748f0a5-c923-40cc-a4eb-9c5c50a88002', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 321s yielded = ctx_run(next, result) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/e748f0a5-c923-40cc-a4eb-9c5c50a88002 (::1) 3.370000ms referer=None 321s ________________________ KernelAPITest.test_no_kernels _________________________ 321s 321s self = 321s 321s def test_no_kernels(self): 321s """Make sure there are no kernels running at the start""" 321s kernels = self.kern_api.list().json() 321s > self.assertEqual(kernels, []) 321s E AssertionError: Lists differ: [{'id': 'e748f0a5-c923-40cc-a4eb-9c5c50a88[281 chars]: 0}] != [] 321s E 321s E First list contains 2 additional elements. 321s E First extra element 0: 321s E {'id': 'e748f0a5-c923-40cc-a4eb-9c5c50a88002', 'name': 'python3', 'last_activity': '2026-01-23T02:44:41.692011Z', 'execution_state': 'starting', 'connections': 0} 321s E 321s E + [] 321s E - [{'connections': 0, 321s E - 'execution_state': 'starting', 321s E - 'id': 'e748f0a5-c923-40cc-a4eb-9c5c50a88002', 321s E - 'last_activity': '2026-01-23T02:44:41.692011Z', 321s E - 'name': 'python3'}, 321s E - {'connections': 0, 321s E - 'execution_state': 'starting', 321s E - 'id': '4285f83a-56c7-4d32-8555-c734f4115d7a', 321s E - 'last_activity': '2026-01-23T02:44:41.709108Z', 321s E - 'name': 'python3'}] 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.520000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e748f0a5-c923-40cc-a4eb-9c5c50a88002 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e748f0a5-c923-40cc-a4eb-9c5c50a88002 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/e748f0a5-c923-40cc-a4eb-9c5c50a88002 (::1) 0.520000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4285f83a-56c7-4d32-8555-c734f4115d7a 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4285f83a-56c7-4d32-8555-c734f4115d7a 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/4285f83a-56c7-4d32-8555-c734f4115d7a (::1) 0.660000ms 321s ---------------------------- Captured log teardown ----------------------------- 321s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 321s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 321s _____________________ AsyncKernelAPITest.test_connections ______________________ 321s 321s self = 321s 321s def tearDown(self): 321s for k in self.kern_api.list().json(): 321s > self.kern_api.shutdown(k['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log setup ------------------------------ 321s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpqg2uxsia/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpqg2uxsia/etc/jupyter'] for config files 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpqg2uxsia/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpqg2uxsia/config 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpqg2uxsia/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpqg2uxsia/config 321s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpqg2uxsia/notebooks 321s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 321s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 321s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 321s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 321s WARNING NotebookApp:handlers.py:612 Forbidden 321s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.520000ms referer=None 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqg2uxsia/runtime/kernel-eadfb8b0-8710-458a-be12-698dc69a4f00.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52167 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37373 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: eadfb8b0-8710-458a-be12-698dc69a4f00, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.150000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00 (::1) 0.370000ms 321s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00/channels 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 321s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59345 321s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 321s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel eadfb8b0-8710-458a-be12-698dc69a4f00) to 5.4 (client). 321s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00/channels (::1) 413.870000ms 321s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00/channels 321s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37373 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59345 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52167 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53415 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59345 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52167 321s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 321s Setting websocket_ping_timeout=30000 321s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00 (::1) 1.390000ms 321s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:handlers.py:579 Websocket closed eadfb8b0-8710-458a-be12-698dc69a4f00:a9683316-25272a7a07c15ca739176d11 321s INFO NotebookApp:kernelmanager.py:222 Starting buffering for eadfb8b0-8710-458a-be12-698dc69a4f00:a9683316-25272a7a07c15ca739176d11 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00 (::1) 0.600000ms 321s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on eadfb8b0-8710-458a-be12-698dc69a4f00:iopub 321s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on eadfb8b0-8710-458a-be12-698dc69a4f00:iopub 321s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on eadfb8b0-8710-458a-be12-698dc69a4f00:iopub 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00 (::1) 0.320000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eadfb8b0-8710-458a-be12-698dc69a4f00 321s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for eadfb8b0-8710-458a-be12-698dc69a4f00:a9683316-25272a7a07c15ca739176d11 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eadfb8b0-8710-458a-be12-698dc69a4f00 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00 (::1) 3.700000ms referer=None 321s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 321s 321s self = 321s 321s def tearDown(self): 321s for k in self.kern_api.list().json(): 321s > self.kern_api.shutdown(k['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/31918a90-3920-4859-946c-335c0dface19 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqg2uxsia/runtime/kernel-31918a90-3920-4859-946c-335c0dface19.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57379 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39599 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 31918a90-3920-4859-946c-335c0dface19, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.680000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.520000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for eadfb8b0-8710-458a-be12-698dc69a4f00 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eadfb8b0-8710-458a-be12-698dc69a4f00 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/eadfb8b0-8710-458a-be12-698dc69a4f00 (::1) 0.700000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31918a90-3920-4859-946c-335c0dface19 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31918a90-3920-4859-946c-335c0dface19 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/31918a90-3920-4859-946c-335c0dface19 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/31918a90-3920-4859-946c-335c0dface19', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "", line 1371, in _find_and_load 321s File "", line 1333, in _find_and_load_unlocked 321s File "", line 1267, in _find_spec 321s File "", line 1292, in find_spec 321s File "", line 1266, in _get_spec 321s File "", line 1393, in find_spec 321s File "", line 131, in _path_join 321s KeyboardInterrupt 321s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 321s 321s self = 321s 321s def test_kernel_handler(self): 321s # GET kernel with given id 321s kid = self.kern_api.start().json()['id'] 321s r = self.kern_api.get(kid) 321s kern1 = r.json() 321s self.assertEqual(r.status_code, 200) 321s assert isinstance(kern1, dict) 321s self.assertIn('id', kern1) 321s self.assertEqual(kern1['id'], kid) 321s 321s # Request a bad kernel id and check that a JSON 321s # message is returned! 321s bad_id = '111-111-111-111-111' 321s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 321s self.kern_api.get(bad_id) 321s 321s # DELETE kernel with id 321s > r = self.kern_api.shutdown(kid) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/34d4e3d9-224b-4ab1-af78-87474af3e44f 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqg2uxsia/runtime/kernel-34d4e3d9-224b-4ab1-af78-87474af3e44f.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39831 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34861 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 34d4e3d9-224b-4ab1-af78-87474af3e44f, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.340000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/34d4e3d9-224b-4ab1-af78-87474af3e44f (::1) 0.500000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s 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 321s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 321s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.430000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34d4e3d9-224b-4ab1-af78-87474af3e44f 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34d4e3d9-224b-4ab1-af78-87474af3e44f 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/34d4e3d9-224b-4ab1-af78-87474af3e44f (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/34d4e3d9-224b-4ab1-af78-87474af3e44f', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/34d4e3d9-224b-4ab1-af78-87474af3e44f (::1) 7.860000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31918a90-3920-4859-946c-335c0dface19 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31918a90-3920-4859-946c-335c0dface19 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/31918a90-3920-4859-946c-335c0dface19 (::1) 0.490000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34d4e3d9-224b-4ab1-af78-87474af3e44f 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34d4e3d9-224b-4ab1-af78-87474af3e44f 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/34d4e3d9-224b-4ab1-af78-87474af3e44f (::1) 0.410000ms 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 51, in 321s import threading 321s File "/usr/lib/python3.14/threading.py", line 9, in 321s from _weakrefset import WeakSet 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 845, in get_code 321s File "", line 968, in path_stats 321s File "", line 152, in _path_stat 321s KeyboardInterrupt 321s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 321s 321s self = 321s 321s def test_main_kernel_handler(self): 321s # POST request 321s r = self.kern_api.start() 321s kern1 = r.json() 321s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 321s self.assertEqual(r.status_code, 201) 321s self.assertIsInstance(kern1, dict) 321s 321s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 321s expected_csp = '; '.join([ 321s "frame-ancestors 'self'", 321s 'report-uri ' + report_uri, 321s "default-src 'none'" 321s ]) 321s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 321s 321s # GET request 321s r = self.kern_api.list() 321s self.assertEqual(r.status_code, 200) 321s assert isinstance(r.json(), list) 321s self.assertEqual(r.json()[0]['id'], kern1['id']) 321s self.assertEqual(r.json()[0]['name'], kern1['name']) 321s 321s # create another kernel and check that they both are added to the 321s # list of kernels from a GET request 321s kern2 = self.kern_api.start().json() 321s assert isinstance(kern2, dict) 321s r = self.kern_api.list() 321s kernels = r.json() 321s self.assertEqual(r.status_code, 200) 321s assert isinstance(kernels, list) 321s self.assertEqual(len(kernels), 2) 321s 321s # Interrupt a kernel 321s r = self.kern_api.interrupt(kern2['id']) 321s self.assertEqual(r.status_code, 204) 321s 321s # Restart a kernel 321s > r = self.kern_api.restart(kern2['id']) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 321s return self._req('POST', url_path_join(id, 'restart')) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/deb28424-9c24-42da-8e19-38b244901454/restart 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ----------------------------- Captured stderr call ----------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 321s from pathlib import Path 321s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 321s from glob import _StringGlobber, _no_recurse_symlinks 321s File "/usr/lib/python3.14/glob.py", line 5, in 321s import re 321s File "/usr/lib/python3.14/re/__init__.py", line 125, in 321s import enum 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 321s import jupyter_client 321s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 321s from .asynchronous import AsyncKernelClient 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 321s from .client import AsyncKernelClient # noqa 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 321s import zmq.asyncio 321s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 321s import asyncio 321s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 321s from .base_events import * 321s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 321s import ssl 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqg2uxsia/runtime/kernel-872b88b4-fc8c-4aef-ad03-2b8cff589c54.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44829 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40119 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 872b88b4-fc8c-4aef-ad03-2b8cff589c54, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.230000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpqg2uxsia/runtime/kernel-deb28424-9c24-42da-8e19-38b244901454.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37695 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40245 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: deb28424-9c24-42da-8e19-38b244901454, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.150000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: deb28424-9c24-42da-8e19-38b244901454 321s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/deb28424-9c24-42da-8e19-38b244901454/interrupt (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 321s yield maybe_future(km.restart_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 321s result = coro.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 321s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 321s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 321s yield self # This tells Task to wait for completion. 321s ^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 321s await ensure_async(kernel.restart_kernel(now=now)) 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 321s await self._async_shutdown_kernel(now=now, restart=True) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/deb28424-9c24-42da-8e19-38b244901454/restart (::1) 4.840000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 872b88b4-fc8c-4aef-ad03-2b8cff589c54 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 872b88b4-fc8c-4aef-ad03-2b8cff589c54 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/872b88b4-fc8c-4aef-ad03-2b8cff589c54 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/872b88b4-fc8c-4aef-ad03-2b8cff589c54', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 321s yield maybe_future(km.shutdown_kernel(kernel_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/872b88b4-fc8c-4aef-ad03-2b8cff589c54 (::1) 3.460000ms referer=None 321s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 321s 321s self = 321s 321s def test_no_kernels(self): 321s """Make sure there are no kernels running at the start""" 321s kernels = self.kern_api.list().json() 321s > self.assertEqual(kernels, []) 321s E AssertionError: Lists differ: [{'id': '872b88b4-fc8c-4aef-ad03-2b8cff589[281 chars]: 0}] != [] 321s E 321s E First list contains 2 additional elements. 321s E First extra element 0: 321s E {'id': '872b88b4-fc8c-4aef-ad03-2b8cff589c54', 'name': 'python3', 'last_activity': '2026-01-23T02:44:42.391034Z', 'execution_state': 'starting', 'connections': 0} 321s E 321s E + [] 321s E - [{'connections': 0, 321s E - 'execution_state': 'starting', 321s E - 'id': '872b88b4-fc8c-4aef-ad03-2b8cff589c54', 321s E - 'last_activity': '2026-01-23T02:44:42.391034Z', 321s E - 'name': 'python3'}, 321s E - {'connections': 0, 321s E - 'execution_state': 'starting', 321s E - 'id': 'deb28424-9c24-42da-8e19-38b244901454', 321s E - 'last_activity': '2026-01-23T02:44:42.408037Z', 321s E - 'name': 'python3'}] 321s 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.390000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 872b88b4-fc8c-4aef-ad03-2b8cff589c54 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 872b88b4-fc8c-4aef-ad03-2b8cff589c54 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/872b88b4-fc8c-4aef-ad03-2b8cff589c54 (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for deb28424-9c24-42da-8e19-38b244901454 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: deb28424-9c24-42da-8e19-38b244901454 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/deb28424-9c24-42da-8e19-38b244901454 (::1) 0.510000ms 321s ---------------------------- Captured log teardown ----------------------------- 321s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31918a90-3920-4859-946c-335c0dface19 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: eadfb8b0-8710-458a-be12-698dc69a4f00 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 872b88b4-fc8c-4aef-ad03-2b8cff589c54 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34d4e3d9-224b-4ab1-af78-87474af3e44f 321s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 321s __________________________ SessionAPITest.test_create __________________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fd2f5be2-3b95-41c6-9cc7-afe90c905061 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log setup ------------------------------ 321s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpmz_hc40u/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpmz_hc40u/etc/jupyter'] for config files 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmz_hc40u/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpmz_hc40u/config 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmz_hc40u/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpmz_hc40u/config 321s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpmz_hc40u/notebooks 321s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 321s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 321s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 321s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 321s WARNING NotebookApp:handlers.py:612 Forbidden 321s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.370000ms referer=None 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-ad7215f9-01ef-4b79-b4ac-780900fa0198.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47999 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56739 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: ad7215f9-01ef-4b79-b4ac-780900fa0198, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.720000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/fd2f5be2-3b95-41c6-9cc7-afe90c905061 (::1) 1.240000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad7215f9-01ef-4b79-b4ac-780900fa0198 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad7215f9-01ef-4b79-b4ac-780900fa0198 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fd2f5be2-3b95-41c6-9cc7-afe90c905061 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fd2f5be2-3b95-41c6-9cc7-afe90c905061', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 49, in 321s import signal 321s File "/usr/lib/python3.14/signal.py", line 7, in 321s _IntEnum._convert_( 321s ~~~~~~~~~~~~~~~~~~^ 321s 'Signals', __name__, 321s ^^^^^^^^^^^^^^^^^^^^ 321s ...<2 lines>... 321s and (name.startswith('SIG') and not name.startswith('SIG_')) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s or name.startswith('CTRL_')) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 321s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 321s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 321s setattr(enum_class, name, member) 321s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 321s def __setattr__(cls, name, value): 321s 321s KeyboardInterrupt 321s __________________ SessionAPITest.test_create_console_session __________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9c9358d2-d079-43e2-acd9-f43ab511f4d4 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-34adffdf-2eab-499d-be4b-cad3708ceede.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57281 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56015 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 34adffdf-2eab-499d-be4b-cad3708ceede, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.300000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ad7215f9-01ef-4b79-b4ac-780900fa0198 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ad7215f9-01ef-4b79-b4ac-780900fa0198 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fd2f5be2-3b95-41c6-9cc7-afe90c905061 (::1) 0.630000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34adffdf-2eab-499d-be4b-cad3708ceede 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34adffdf-2eab-499d-be4b-cad3708ceede 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9c9358d2-d079-43e2-acd9-f43ab511f4d4 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9c9358d2-d079-43e2-acd9-f43ab511f4d4', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 46, in 321s import locale 321s File "/usr/lib/python3.14/locale.py", line 95, in 321s if 'strxfrm' not in globals(): 321s ~~~~~~~^^ 321s KeyboardInterrupt 321s ____________________ SessionAPITest.test_create_deprecated _____________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e763b28c-6e69-4d1b-b6a6-3d6008888f20 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-08d309dc-9234-4b6e-8abf-dd7139a9caa0.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46505 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38803 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 08d309dc-9234-4b6e-8abf-dd7139a9caa0, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.480000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.260000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 34adffdf-2eab-499d-be4b-cad3708ceede 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 34adffdf-2eab-499d-be4b-cad3708ceede 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9c9358d2-d079-43e2-acd9-f43ab511f4d4 (::1) 0.560000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 08d309dc-9234-4b6e-8abf-dd7139a9caa0 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 08d309dc-9234-4b6e-8abf-dd7139a9caa0 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e763b28c-6e69-4d1b-b6a6-3d6008888f20 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e763b28c-6e69-4d1b-b6a6-3d6008888f20', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 321s import json 321s File "/usr/lib/python3.14/json/__init__.py", line 107, in 321s from .encoder import JSONEncoder 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 851, in get_code 321s File "", line 950, in get_data 321s KeyboardInterrupt 321s ___________________ SessionAPITest.test_create_file_session ____________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2a4fa88a-5646-4c09-ad2d-d61c31eb64cf 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-f68a1450-1b6f-47ca-83e1-83aa393b2d86.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53163 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40545 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: f68a1450-1b6f-47ca-83e1-83aa393b2d86, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.500000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.170000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 08d309dc-9234-4b6e-8abf-dd7139a9caa0 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 08d309dc-9234-4b6e-8abf-dd7139a9caa0 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e763b28c-6e69-4d1b-b6a6-3d6008888f20 (::1) 0.620000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f68a1450-1b6f-47ca-83e1-83aa393b2d86 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f68a1450-1b6f-47ca-83e1-83aa393b2d86 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2a4fa88a-5646-4c09-ad2d-d61c31eb64cf (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2a4fa88a-5646-4c09-ad2d-d61c31eb64cf', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/2a4fa88a-5646-4c09-ad2d-d61c31eb64cf (::1) 4.030000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 49, in 321s import signal 321s File "", line 1371, in _find_and_load 321s File "", line 1333, in _find_and_load_unlocked 321s File "", line 1267, in _find_spec 321s File "", line 1292, in find_spec 321s File "", line 1266, in _get_spec 321s File "", line 1365, in find_spec 321s File "", line 152, in _path_stat 321s KeyboardInterrupt 321s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 321s 321s self = 321s 321s def test_create_with_kernel_id(self): 321s # create a new kern/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 321s gc.collect() 321s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 321s el 321s r = self.request('POST', 'api/kernels') 321s r.raise_for_status() 321s kernel = r.json() 321s 321s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 321s self.assertEqual(resp.status_code, 201) 321s newsession = resp.json() 321s self.assertIn('id', newsession) 321s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 321s self.assertEqual(newsession['kernel']['id'], kernel['id']) 321s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 321s 321s sessions = self.sess_api.list().json() 321s > self.assertEqual(sessions, [newsession]) 321s E AssertionError: Lists differ: [{'id': '2a4fa88a-5646-4c09-ad2d-d61c31eb64cf', 'p[553 chars]ne}}] != [{'id': '59fec7b2-c88b-46eb-bb12-806ec082fc78', 'p[279 chars]ne}}] 321s E 321s E First differing element 0: 321s E {'id': '2a4fa88a-5646-4c09-ad2d-d61c31eb64cf', 'p[218 chars]: 0}} 321s E {'id': '59fec7b2-c88b-46eb-bb12-806ec082fc78', 'p[278 chars]one}} 321s E 321s E First list contains 1 additional elements. 321s E First extra element 1: 321s E {'id': '59fec7b2-c88b-46eb-bb12-806ec082fc78', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '85d1ca2d-9551-4450-82d1-358637af5d7b', 'name': 'python3', 'last_activity': '2026-01-23T02:44:52.207991Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 321s E 321s E Diff is 830 characters long. Set self.maxDiff to None to see it. 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-85d1ca2d-9551-4450-82d1-358637af5d7b.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60321 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54975 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 85d1ca2d-9551-4450-82d1-358637af5d7b, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 20.430000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.540000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f68a1450-1b6f-47ca-83e1-83aa393b2d86 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f68a1450-1b6f-47ca-83e1-83aa393b2d86 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2a4fa88a-5646-4c09-ad2d-d61c31eb64cf (::1) 0.580000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85d1ca2d-9551-4450-82d1-358637af5d7b 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85d1ca2d-9551-4450-82d1-358637af5d7b 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/59fec7b2-c88b-46eb-bb12-806ec082fc78 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/59fec7b2-c88b-46eb-bb12-806ec082fc78', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/59fec7b2-c88b-46eb-bb12-806ec082fc78 (::1) 3.950000ms referer=None 321s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 321s 321s self = 321s 321s def test_modify_kernel_id(self): 321s before = self.sess_api.create('foo/nb1.ipynb').json() 321s sid = before['id'] 321s 321s # create a new kernel 321s r = self.request('POST', 'api/kernels') 321s r.raise_for_status() 321s kernel = r.json() 321s 321s # Attach our session to the existing kernel 321s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 321s return self._req('PATCH', id, body) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ----------------------------- Captured stderr call ----------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 321s import jupyter_client 321s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 321s from .asynchronous import AsyncKernelClient 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 321s from .client import AsyncKernelClient # noqa 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 321s import zmq.asyncio 321s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 321s import asyncio 321s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 321s from .base_events import * 321s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 321s import concurrent.futures 321s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 321s from concurrent.futures._base import (FIRST_COMPLETED, 321s ...<9 lines>... 321s as_completed) 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 321s import logging 321s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 321s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 321s File "/usr/lib/python3.14/traceback.py", line 7, in 321s import textwrap 321s File "/usr/lib/python3.14/textwrap.py", line 17, in 321s class TextWrapper: 321s ...<350 lines>... 321s return "\n".join(self.wrap(text)) 321s File "/usr/lib/python3.14/textwrap.py", line 78, in TextWrapper 321s wordsep_re = re.compile(r''' 321s ( # any whitespace 321s ...<14 lines>... 321s 'ws': whitespace, 'nws': nowhitespace}, 321s re.VERBOSE) 321s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 321s return _compile(pattern, flags) 321s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 321s p = _compiler.compile(pattern, flags) 321s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 321s p = _parser.parse(p, flags) 321s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 321s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 321s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 321s itemsappend(_parse(source, state, verbose, nested + 1, 321s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s not nested and not items)) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/re/_parser.py", line 856, in _parse 321s p = _parse_sub(source, state, sub_verbose, nested + 1) 321s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 321s itemsappend(_parse(source, state, verbose, nested + 1, 321s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s not nested and not items)) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/re/_parser.py", line 689, in _parse 321s if item[0][0] in _REPEATCODES: 321s ~~~~^^^ 321s File "/usr/lib/python3.14/re/_parser.py", line 168, in __getitem__ 321s def __getitem__(self, index): 321s 321s KeyboardInterrupt 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-a924e9e3-96e5-4710-993a-86b01133c2cf.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57523 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47059 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: a924e9e3-96e5-4710-993a-86b01133c2cf, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.710000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-23fbf235-7640-40c9-afcc-d79807e7a063.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41181 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37045 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 23fbf235-7640-40c9-afcc-d79807e7a063, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.940000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a924e9e3-96e5-4710-993a-86b01133c2cf 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a924e9e3-96e5-4710-993a-86b01133c2cf 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 154, in patch 321s km.shutdown_kernel(before['kernel']['id']) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 8.540000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.370000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23fbf235-7640-40c9-afcc-d79807e7a063 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23fbf235-7640-40c9-afcc-d79807e7a063 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 10.190000ms referer=None 321s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 321s 321s self = 321s 321s def test_modify_kernel_name(self): 321s before = self.sess_api.create('foo/nb1.ipynb').json() 321s sid = before['id'] 321s 321s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 321s self.assertEqual(after['id'], sid) 321s self.assertEqual(after['path'], before['path']) 321s self.assertEqual(after['type'], before['type']) 321s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 321s 321s # check kernel list, to be sure previous kernel was cleaned up 321s r = self.request('GET', 'api/kernels') 321s r.raise_for_status() 321s kernel_list = r.json() 321s after['kernel'].pop('last_activity') 321s [ k.pop('last_activity') for k in kernel_list ] 321s > self.assertEqual(kernel_list, [after['kernel']]) 321s E AssertionError: Lists differ: [{'id': 'a924e9e3-96e5-4710-993a-86b01133c2cf', 'n[177 chars]: 0}] != [{'id': '6dd351b3-4ca5-419b-a242-90e5319b65e8', 'n[61 chars]: 0}] 321s E 321s E First differing element 0: 321s E {'id': 'a924e9e3-96e5-4710-993a-86b01133c2cf', 'n[60 chars]': 0} 321s E {'id': '6dd351b3-4ca5-419b-a242-90e5319b65e8', 'n[60 chars]': 0} 321s E 321s E First list contains 1 additional elements. 321s E First extra element 1: 321s E {'id': '6dd351b3-4ca5-419b-a242-90e5319b65e8', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 321s E 321s E [{'connections': 0, 321s E - 'execution_state': 'starting', 321s E - 'id': 'a924e9e3-96e5-4710-993a-86b01133c2cf', 321s E - 'name': 'python3'}, 321s E - {'connections': 0, 321s E 'execution_state': 'starting', 321s E 'id': '6dd351b3-4ca5-419b-a242-90e5319b65e8', 321s E 'name': 'python3'}] 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.650000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-6dd351b3-4ca5-419b-a242-90e5319b65e8.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37883 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57333 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6dd351b3-4ca5-419b-a242-90e5319b65e8, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 23fbf235-7640-40c9-afcc-d79807e7a063 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 23fbf235-7640-40c9-afcc-d79807e7a063 321s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 15.110000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.950000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6dd351b3-4ca5-419b-a242-90e5319b65e8 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6dd351b3-4ca5-419b-a242-90e5319b65e8 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/71108a0a-7b9b-4234-8a62-cebbdb0d8c15 (::1) 3.830000ms referer=None 321s __________________ SessionAPITest.test_modify_path_deprecated __________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/64faea7a-2532-4670-8703-a71494720a77 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-a3c17a24-3c2c-4115-9b43-84cafb145349.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36489 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45023 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: a3c17a24-3c2c-4115-9b43-84cafb145349, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.170000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 321s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/64faea7a-2532-4670-8703-a71494720a77 (::1) 1.430000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.110000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a3c17a24-3c2c-4115-9b43-84cafb145349 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a3c17a24-3c2c-4115-9b43-84cafb145349 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/64faea7a-2532-4670-8703-a71494720a77 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/64faea7a-2532-4670-8703-a71494720a77', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s _______________________ SessionAPITest.test_modify_type ________________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fd34090f-163e-4fe4-baf8-f8eabdb865b3 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpmz_hc40u/runtime/kernel-8353293d-dc7e-4b36-997f-8e7abaaf26b4.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48259 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40217 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8353293d-dc7e-4b36-997f-8e7abaaf26b4, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpmz_hc40u/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.070000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/fd34090f-163e-4fe4-baf8-f8eabdb865b3 (::1) 1.210000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a3c17a24-3c2c-4115-9b43-84cafb145349 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a3c17a24-3c2c-4115-9b43-84cafb145349 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/64faea7a-2532-4670-8703-a71494720a77 (::1) 0.530000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8353293d-dc7e-4b36-997f-8e7abaaf26b4 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8353293d-dc7e-4b36-997f-8e7abaaf26b4 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fd34090f-163e-4fe4-baf8-f8eabdb865b3 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fd34090f-163e-4fe4-baf8-f8eabdb865b3', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 321s yielded = self.gen.send(value) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 321s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 321s stopper = ensure_async(km.shutdown_kernel(now, restart)) 321s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 321s return _runner_map[name].run(inner) 321s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 321s return fut.result(None) 321s ~~~~~~~~~~^^^^^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 321s return self.__get_result() 321s ~~~~~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 321s raise self._exception 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 51, in 321s import threading 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s ---------------------------- Captured log teardown ----------------------------- 321s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a924e9e3-96e5-4710-993a-86b01133c2cf 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8353293d-dc7e-4b36-997f-8e7abaaf26b4 321s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 321s _______________________ AsyncSessionAPITest.test_create ________________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5df07430-b035-49ee-a042-fa430fb6b6b0 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log setup ------------------------------ 321s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpr66u4lk6/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpr66u4lk6/etc/jupyter'] for config files 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpr66u4lk6/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpr66u4lk6/config 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpr66u4lk6/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 321s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpr66u4lk6/config 321s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpr66u4lk6/notebooks 321s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 321s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 321s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 321s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 321s WARNING NotebookApp:handlers.py:612 Forbidden 321s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.340000ms referer=None 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-65f3ccd5-df66-4d6c-a471-ab39d6f50a98.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56815 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48755 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 65f3ccd5-df66-4d6c-a471-ab39d6f50a98, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.150000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.650000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/5df07430-b035-49ee-a042-fa430fb6b6b0 (::1) 0.390000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65f3ccd5-df66-4d6c-a471-ab39d6f50a98 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65f3ccd5-df66-4d6c-a471-ab39d6f50a98 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5df07430-b035-49ee-a042-fa430fb6b6b0 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5df07430-b035-49ee-a042-fa430fb6b6b0', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5df07430-b035-49ee-a042-fa430fb6b6b0 (::1) 3.750000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 46, in 321s import locale 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s _______________ AsyncSessionAPITest.test_create_console_session ________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/08a98b0f-7b45-4c5b-bae3-d4bbd5d0bda5 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-6bc1975b-2837-4445-81e1-6bda8001a342.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38015 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42369 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6bc1975b-2837-4445-81e1-6bda8001a342, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.080000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.160000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 65f3ccd5-df66-4d6c-a471-ab39d6f50a98 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65f3ccd5-df66-4d6c-a471-ab39d6f50a98 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5df07430-b035-49ee-a042-fa430fb6b6b0 (::1) 0.510000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6bc1975b-2837-4445-81e1-6bda8001a342 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6bc1975b-2837-4445-81e1-6bda8001a342 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/08a98b0f-7b45-4c5b-bae3-d4bbd5d0bda5 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/08a98b0f-7b45-4c5b-bae3-d4bbd5d0bda5', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/08a98b0f-7b45-4c5b-bae3-d4bbd5d0bda5 (::1) 3.830000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 46, in 321s import locale 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9f424b27-22ba-42ba-8782-77ce41e6283f 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-641d7b0e-1e6a-4634-8696-c9126928d8fd.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45085 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55741 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 641d7b0e-1e6a-4634-8696-c9126928d8fd, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.490000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6bc1975b-2837-4445-81e1-6bda8001a342 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6bc1975b-2837-4445-81e1-6bda8001a342 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/08a98b0f-7b45-4c5b-bae3-d4bbd5d0bda5 (::1) 0.510000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 641d7b0e-1e6a-4634-8696-c9126928d8fd 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 641d7b0e-1e6a-4634-8696-c9126928d8fd 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9f424b27-22ba-42ba-8782-77ce41e6283f (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9f424b27-22ba-42ba-8782-77ce41e6283f', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9f424b27-22ba-42ba-8782-77ce41e6283f (::1) 3.900000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 321s import json 321s File "/usr/lib/python3.14/json/__init__.py", line 107, in 321s from .encoder import JSONEncoder 321s File "/usr/lib/python3.14/json/encoder.py", line 18, in 321s ESCAPE = re.compile(r'[\x00-\x1f\\"\b\f\n\r\t]') 321s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 321s return _compile(pattern, flags) 321s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 321s p = _compiler.compile(pattern, flags) 321s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 321s p = _parser.parse(p, flags) 321s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 321s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 321s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 321s itemsappend(_parse(source, state, verbose, nested + 1, 321s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s not nested and not items)) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/re/_parser.py", line 566, in _parse 321s this = sourceget() 321s File "/usr/lib/python3.14/re/_parser.py", line 261, in get 321s def get(self): 321s 321s KeyboardInterrupt 321s _________________ AsyncSessionAPITest.test_create_file_session _________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/9bae794d-607e-4eb1-a879-d7b12d4dfa65 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-b9afc658-b025-492e-8ac2-57328efc71ed.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41237 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46831 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: b9afc658-b025-492e-8ac2-57328efc71ed, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.390000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 641d7b0e-1e6a-4634-8696-c9126928d8fd 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 641d7b0e-1e6a-4634-8696-c9126928d8fd 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9f424b27-22ba-42ba-8782-77ce41e6283f (::1) 1.350000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9afc658-b025-492e-8ac2-57328efc71ed 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9afc658-b025-492e-8ac2-57328efc71ed 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/9bae794d-607e-4eb1-a879-d7b12d4dfa65 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/9bae794d-607e-4eb1-a879-d7b12d4dfa65', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/9bae794d-607e-4eb1-a879-d7b12d4dfa65 (::1) 4.200000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 321s from subprocess import PIPE, Popen 321s File "/usr/lib/python3.14/subprocess.py", line 46, in 321s import locale 321s File "", line 1371, in _find_and_load 321s File "", line 1333, in _find_and_load_unlocked 321s File "", line 1267, in _find_spec 321s File "", line 1292, in find_spec 321s File "", line 1266, in _get_spec 321s File "", line 1365, in find_spec 321s File "", line 152, in _path_stat 321s KeyboardInterrupt 321s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 321s 321s self = 321s 321s def test_create_with_kernel_id(self): 321s # create a new kernel 321s r = self.request('POST', 'api/kernels') 321s r.raise_for_status() 321s kernel = r.json() 321s 321s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 321s self.assertEqual(resp.status_code, 201) 321s newsession = resp.json() 321s self.assertIn('id', newsession) 321s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 321s self.assertEqual(newsession['kernel']['id'], kernel['id']) 321s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 321s 321s sessions = self.sess_api.list().json() 321s > self.assertEqual(sessions, [newsession]) 321s E AssertionError: Lists differ: [{'id': '9bae794d-607e-4eb1-a879-d7b12d4dfa65', 'p[553 chars]ne}}] != [{'id': '26e7618a-3eef-48e0-bf2d-eeb7c483ffc7', 'p[279 chars]ne}}] 321s E 321s E First differing element 0: 321s E {'id': '9bae794d-607e-4eb1-a879-d7b12d4dfa65', 'p[218 chars]: 0}} 321s E {'id': '26e7618a-3eef-48e0-bf2d-eeb7c483ffc7', 'p[278 chars]one}} 321s E 321s E First list contains 1 additional elements. 321s E First extra element 1: 321s E {'id': '26e7618a-3eef-48e0-bf2d-eeb7c483ffc7', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '98853c17-1cc8-4db7-9481-02b5df3b6080', 'name': 'python3', 'last_activity': '2026-01-23T02:44:52.852705Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 321s E 321s E Diff is 830 characters long. Set self.maxDiff to None to see it. 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-98853c17-1cc8-4db7-9481-02b5df3b6080.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50895 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44417 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 98853c17-1cc8-4db7-9481-02b5df3b6080, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.060000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.520000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b9afc658-b025-492e-8ac2-57328efc71ed 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9afc658-b025-492e-8ac2-57328efc71ed 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/9bae794d-607e-4eb1-a879-d7b12d4dfa65 (::1) 1.240000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 98853c17-1cc8-4db7-9481-02b5df3b6080 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98853c17-1cc8-4db7-9481-02b5df3b6080 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/26e7618a-3eef-48e0-bf2d-eeb7c483ffc7 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/26e7618a-3eef-48e0-bf2d-eeb7c483ffc7', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/26e7618a-3eef-48e0-bf2d-eeb7c483ffc7 (::1) 3.640000ms referer=None 321s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 321s 321s self = 321s 321s def test_modify_kernel_id(self): 321s before = self.sess_api.create('foo/nb1.ipynb').json() 321s sid = before['id'] 321s 321s # create a new kernel 321s r = self.request('POST', 'api/kernels') 321s r.raise_for_status() 321s kernel = r.json() 321s 321s # Attach our session to the existing kernel 321s > after = self.sess_api.modify_kernel_id(sid, kernel['id']).json() 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:250: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:82: in modify_kernel_id 321s return self._req('PATCH', id, body) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ----------------------------- Captured stderr call ----------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 321s from ipykernel import kernelapp as app 321s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 321s from .connect import * # noqa: F403 321s ^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 321s import jupyter_client 321s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 321s from .asynchronous import AsyncKernelClient 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 321s from .client import AsyncKernelClient # noqa 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 321s import zmq.asyncio 321s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 321s from zmq import sugar 321s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 321s from zmq.sugar import context, frame, poll, socket, tracker, version 321s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 321s from .socket import Socket, SyncSocket 321s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 10, in 321s import random 321s File "/usr/lib/python3.14/random.py", line 61, in 321s from bisect import bisect as _bisect 321s File "", line 1371, in _find_and_load 321s File "", line 1342, in _find_and_load_unlocked 321s File "", line 938, in _load_unlocked 321s File "", line 755, in exec_module 321s File "", line 888, in get_code 321s File "", line 511, in _compile_bytecode 321s KeyboardInterrupt 321s Exception ignored while calling weakref callback .KeyedRef.remove at 0x7102929d45c0>: 321s Traceback (most recent call last): 321s File "", line 91, in remove 321s KeyboardInterrupt: 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-36ac1645-dbf1-412a-a311-ff82e02f4aaf.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51387 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42697 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 36ac1645-dbf1-412a-a311-ff82e02f4aaf, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.470000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-8a179df3-539e-4251-90f1-ed04755f3b71.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59711 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49279 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8a179df3-539e-4251-90f1-ed04755f3b71, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.770000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 36ac1645-dbf1-412a-a311-ff82e02f4aaf 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36ac1645-dbf1-412a-a311-ff82e02f4aaf 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception PATCH /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='PATCH', uri='/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 153, in patch 321s yield maybe_future( 321s km.shutdown_kernel(before['kernel']['id']) 321s ) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 PATCH /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 7.870000ms referer=None 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.220000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a179df3-539e-4251-90f1-ed04755f3b71 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a179df3-539e-4251-90f1-ed04755f3b71 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 6.910000ms referer=None 321s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 321s 321s self = 321s 321s def test_modify_kernel_name(self): 321s before = self.sess_api.create('foo/nb1.ipynb').json() 321s sid = before['id'] 321s 321s after = self.sess_api.modify_kernel_name(sid, before['kernel']['name']).json() 321s self.assertEqual(after['id'], sid) 321s self.assertEqual(after['path'], before['path']) 321s self.assertEqual(after['type'], before['type']) 321s self.assertNotEqual(after['kernel']['id'], before['kernel']['id']) 321s 321s # check kernel list, to be sure previous kernel was cleaned up 321s r = self.request('GET', 'api/kernels') 321s r.raise_for_status() 321s kernel_list = r.json() 321s after['kernel'].pop('last_activity') 321s [ k.pop('last_activity') for k in kernel_list ] 321s > self.assertEqual(kernel_list, [after['kernel']]) 321s E AssertionError: Lists differ: [{'id': '36ac1645-dbf1-412a-a311-ff82e02f4aaf', 'n[177 chars]: 0}] != [{'id': '06582d46-5cdd-47b2-b742-8869e55cb7ea', 'n[61 chars]: 0}] 321s E 321s E First differing element 0: 321s E {'id': '36ac1645-dbf1-412a-a311-ff82e02f4aaf', 'n[60 chars]': 0} 321s E {'id': '06582d46-5cdd-47b2-b742-8869e55cb7ea', 'n[60 chars]': 0} 321s E 321s E First list contains 1 additional elements. 321s E First extra element 1: 321s E {'id': '06582d46-5cdd-47b2-b742-8869e55cb7ea', 'name': 'python3', 'execution_state': 'starting', 'connections': 0} 321s E 321s E [{'connections': 0, 321s E - 'execution_state': 'starting', 321s E - 'id': '36ac1645-dbf1-412a-a311-ff82e02f4aaf', 321s E - 'name': 'python3'}, 321s E - {'connections': 0, 321s E 'execution_state': 'starting', 321s E 'id': '06582d46-5cdd-47b2-b742-8869e55cb7ea', 321s E 'name': 'python3'}] 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:238: AssertionError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.630000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-06582d46-5cdd-47b2-b742-8869e55cb7ea.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37413 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55071 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: 06582d46-5cdd-47b2-b742-8869e55cb7ea, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8a179df3-539e-4251-90f1-ed04755f3b71 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a179df3-539e-4251-90f1-ed04755f3b71 321s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 14.530000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 06582d46-5cdd-47b2-b742-8869e55cb7ea 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06582d46-5cdd-47b2-b742-8869e55cb7ea 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/af542f89-e668-40fc-af32-a203074ae966 (::1) 7.960000ms referer=None 321s _______________ AsyncSessionAPITest.test_modify_path_deprecated ________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e33879c5-a763-4295-bf5d-3e9292cb5c3b 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-e6f395e9-5ef2-4edd-8ab5-1e9c74fe5f59.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52491 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43445 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: e6f395e9-5ef2-4edd-8ab5-1e9c74fe5f59, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.670000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s WARNING NotebookApp:handlers.py:124 Sessions API changed, see updated swagger docs 321s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e33879c5-a763-4295-bf5d-3e9292cb5c3b (::1) 2.800000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.680000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e6f395e9-5ef2-4edd-8ab5-1e9c74fe5f59 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e6f395e9-5ef2-4edd-8ab5-1e9c74fe5f59 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e33879c5-a763-4295-bf5d-3e9292cb5c3b (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e33879c5-a763-4295-bf5d-3e9292cb5c3b', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e33879c5-a763-4295-bf5d-3e9292cb5c3b (::1) 7.830000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 321s from pathlib import Path 321s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 321s from glob import _StringGlobber, _no_recurse_symlinks 321s File "/usr/lib/python3.14/glob.py", line 5, in 321s import re 321s File "/usr/lib/python3.14/re/__init__.py", line 126, in 321s from . import _compiler, _parser 321s File "/usr/lib/python3.14/re/_compiler.py", line 16, in 321s from ._casefix import _EXTRA_CASES 321s File "", line 1371, in _find_and_load 321s File "", line 1333, in _find_and_load_unlocked 321s File "", line 1267, in _find_spec 321s File "", line 1292, in find_spec 321s File "", line 1266, in _get_spec 321s File "", line 1365, in find_spec 321s File "", line 152, in _path_stat 321s KeyboardInterrupt 321s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 321s 321s @self.addCleanup 321s def cleanup_sessions(): 321s for session in self.sess_api.list().json(): 321s > self.sess_api.delete(session['id']) 321s 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 321s return self._req('DELETE', id) 321s ^^^^^^^^^^^^^^^^^^^^^^^ 321s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 321s response.raise_for_status() 321s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 321s 321s self = 321s 321s def raise_for_status(self): 321s """Raises :class:`HTTPError`, if one occurred.""" 321s 321s http_error_msg = "" 321s if isinstance(self.reason, bytes): 321s # We attempt to decode utf-8 first because some servers 321s # choose to localize their reason strings. If the string 321s # isn't utf-8, we fall back to iso-8859-1 for all other 321s # encodings. (See PR #3538) 321s try: 321s reason = self.reason.decode("utf-8") 321s except UnicodeDecodeError: 321s reason = self.reason.decode("iso-8859-1") 321s else: 321s reason = self.reason 321s 321s if 400 <= self.status_code < 500: 321s http_error_msg = ( 321s f"{self.status_code} Client Error: {reason} for url: {self.url}" 321s ) 321s 321s elif 500 <= self.status_code < 600: 321s http_error_msg = ( 321s f"{self.status_code} Server Error: {reason} for url: {self.url}" 321s ) 321s 321s if http_error_msg: 321s > raise HTTPError(http_error_msg, response=self) 321s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b0aefb71-0a2b-4627-8263-23dfccab944f 321s 321s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 321s ------------------------------ Captured log call ------------------------------- 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 321s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpr66u4lk6/runtime/kernel-d48b50e1-eb5f-4902-a507-0f68d5dd1579.json'] 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52707 321s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55841 321s INFO NotebookApp:kernelmanager.py:179 Kernel started: d48b50e1-eb5f-4902-a507-0f68d5dd1579, name: python3 321s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpr66u4lk6/notebooks/foo'} 321s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.530000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/b0aefb71-0a2b-4627-8263-23dfccab944f (::1) 1.390000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 2.070000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e6f395e9-5ef2-4edd-8ab5-1e9c74fe5f59 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e6f395e9-5ef2-4edd-8ab5-1e9c74fe5f59 321s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/e33879c5-a763-4295-bf5d-3e9292cb5c3b (::1) 1.700000ms 321s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 321s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d48b50e1-eb5f-4902-a507-0f68d5dd1579 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d48b50e1-eb5f-4902-a507-0f68d5dd1579 321s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b0aefb71-0a2b-4627-8263-23dfccab944f (::1) 321s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b0aefb71-0a2b-4627-8263-23dfccab944f', version='HTTP/1.1', remote_ip='::1') 321s Traceback (most recent call last): 321s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 321s result = await result 321s ^^^^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 321s future.result() 321s ~~~~~~~~~~~~~^^ 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 321s yield maybe_future(sm.delete_session(session_id)) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 321s yielded = self.gen.throw(exc) 321s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 321s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 321s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 321s value = future.result() 321s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 321s raise self._exception.with_traceback(self._exception_tb) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 321s result = coro.send(None) 321s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 321s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 321s raise km.ready.exception() # type: ignore[misc] 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 321s await kernel_awaitable 321s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 321s result = await obj 321s ^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 321s raise e 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 321s out = await method(self, *args, **kwargs) 321s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 321s await self._async_finish_shutdown(restart=restart) 321s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 321s await asyncio.wait_for( 321s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 321s ) 321s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 321s async with timeouts.timeout(timeout): 321s ~~~~~~~~~~~~~~~~^^^^^^^^^ 321s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 321s raise RuntimeError("Timeout should be used inside a task") 321s RuntimeError: Timeout should be used inside a task 321s WARNING NotebookApp:handlers.py:612 Unhandled error 321s ERROR NotebookApp:log.py:55 { 321s "Host": "localhost:12341", 321s "Accept": "*/*", 321s "User-Agent": "python-requests/2.32.5" 321s } 321s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b0aefb71-0a2b-4627-8263-23dfccab944f (::1) 8.860000ms referer=None 321s --------------------------- Captured stderr teardown --------------------------- 321s Traceback (most recent call last): 321s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 321s return _run_code(code, main_globals, None, 321s "__main__", mod_spec) 321s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 321s exec(code, run_globals) 321s ~~~~^^^^^^^^^^^^^^^^^^^ 321s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 321s from pathlib import Path 321s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 321s from pathlib._os import ( 321s ...<3 lines>... 321s ) 321s File "/usr/lib/python3.14/pathlib/_os.py", line 11, in 321s import fcntl 321s File "", line 1371, in _find_and_load 321s File "", line 1333, in _find_and_load_unlocked 321s File "", line 1267, in _find_spec 321s File "/usr/lib/python3/dist-packages/_distutils_hack/__init__.py", line 107, in find_spec 321s method_name = 'spec_for_{fullname}'.format(**locals()) 321s ~~~~~~^^ 321s KeyboardInterrupt 321s [IPKernelApp] ERROR | Failed to open SQLite history /tmp/tmpr66u4lk6/home/.ipython/profile_default/history.sqlite (disk I/O error). 321s [IPKernelApp] ERROR | Failed to open SQLite history /tmp/tmpr66u4lk6/home/.ipython/profile_default/history.sqlite (unable to open database file). 321s [IPKernelApp] ERROR | Failed to open SQLite history /tmp/tmpr66u4lk6/home/.ipython/profile_default/history.sqlite (unable to open database file). 321s ---------------------------- Captured log teardown ----------------------------- 321s INFO NotebookApp:notebookapp.py:2164 Shutting down 2 kernels 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b9afc658-b025-492e-8ac2-57328efc71ed 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6bc1975b-2837-4445-81e1-6bda8001a342 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8a179df3-539e-4251-90f1-ed04755f3b71 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 65f3ccd5-df66-4d6c-a471-ab39d6f50a98 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36ac1645-dbf1-412a-a311-ff82e02f4aaf 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 98853c17-1cc8-4db7-9481-02b5df3b6080 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 641d7b0e-1e6a-4634-8696-c9126928d8fd 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 06582d46-5cdd-47b2-b742-8869e55cb7ea 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e6f395e9-5ef2-4edd-8ab5-1e9c74fe5f59 321s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d48b50e1-eb5f-4902-a507-0f68d5dd1579 321s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 321s =============================== warnings summary =============================== 321s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 321s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 321s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 321s return LooseVersion(v) >= LooseVersion(check) 321s 321s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 321s auth/tests/test_login.py: 2 warnings 321s bundler/tests/test_bundler_api.py: 2 warnings 321s services/api/tests/test_api.py: 4 warnings 321s services/config/tests/test_config_api.py: 7 warnings 321s services/contents/tests/test_contents_api.py: 318 warnings 321s services/kernels/tests/test_kernels_api.py: 103 warnings 321s services/kernelspecs/tests/test_kernelspecs_api.py: 7 warnings 321s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 321s services/sessions/tests/test_sessionmanager.py: 9 warnings 321s services/sessions/tests/test_sessions_api.py: 128 warnings 321s terminal/tests/test_terminals_api.py: 50 warnings 321s tests/test_files.py: 2 warnings 321s tests/test_gateway.py: 21 warnings 321s tests/test_notebookapp.py: 8 warnings 321s tests/test_paths.py: 2 warnings 321s tree/tests/test_tree_handler.py: 2 warnings 321s /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). 321s dt = unaware(*args, **kwargs) 321s 321s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 321s /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 321s pytestmark = pytest.mark.integration_tests 321s 321s auth/tests/test_login.py: 3 warnings 321s bundler/tests/test_bundler_api.py: 3 warnings 321s services/api/tests/test_api.py: 3 warnings 321s services/config/tests/test_config_api.py: 3 warnings 321s services/contents/tests/test_contents_api.py: 6 warnings 321s services/kernels/tests/test_kernels_api.py: 12 warnings 321s services/kernelspecs/tests/test_kernelspecs_api.py: 3 warnings 321s services/nbconvert/tests/test_nbconvert_api.py: 3 warnings 321s services/sessions/tests/test_sessions_api.py: 6 warnings 321s terminal/tests/test_terminals_api.py: 6 warnings 321s tests/test_files.py: 3 warnings 321s tests/test_gateway.py: 3 warnings 321s tests/test_notebookapp.py: 11 warnings 321s tests/test_paths.py: 3 warnings 321s tree/tests/test_tree_handler.py: 3 warnings 321s /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 321s policy = events.get_event_loop_policy() 321s 321s auth/tests/test_login.py: 9 warnings 321s bundler/tests/test_bundler_api.py: 9 warnings 321s services/api/tests/test_api.py: 9 warnings 321s services/config/tests/test_config_api.py: 9 warnings 321s services/contents/tests/test_contents_api.py: 18 warnings 321s services/kernels/tests/test_kernels_api.py: 47 warnings 321s services/kernelspecs/tests/test_kernelspecs_api.py: 9 warnings 321s services/nbconvert/tests/test_nbconvert_api.py: 9 warnings 321s services/sessions/tests/test_sessionmanager.py: 18 warnings 321s services/sessions/tests/test_sessions_api.py: 19 warnings 321s terminal/tests/test_terminals_api.py: 18 warnings 321s tests/test_files.py: 9 warnings 321s tests/test_gateway.py: 9 warnings 321s tests/test_notebookapp.py: 28 warnings 321s tests/test_paths.py: 9 warnings 321s tree/tests/test_tree_handler.py: 9 warnings 321s /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 321s loop = events.get_event_loop_policy().get_event_loop() 321s 321s bundler/tests/test_bundler_api.py: 6 warnings 321s services/api/tests/test_api.py: 6 warnings 321s services/contents/tests/test_contents_api.py: 806 warnings 321s services/contents/tests/test_largefilemanager.py: 42 warnings 321s services/contents/tests/test_manager.py: 526 warnings 321s tests/test_files.py: 8 warnings 321s tree/tests/test_tree_handler.py: 6 warnings 321s /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). 321s dt = unaware(*args, **kwargs) 321s 321s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 321s services/kernels/tests/test_kernels_api.py::KernelCullingTest::test_culling 321s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 321s loop.make_current() 321s 321s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs 321s services/kernelspecs/tests/test_kernelspecs_api.py::APITest::test_list_kernelspecs_bad 321s /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/tmpiuwuawkj/data/kernels/sample 2 321s d = self.find_kernel_specs() 321s 321s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal 321s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 321s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_via_get 321s terminal/tests/test_terminals_api.py::TerminalAPITest::test_create_terminal_with_name 321s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_handler 321s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 321s terminal/tests/test_terminals_api.py::TerminalAPITest::test_terminal_root_handler 321s terminal/tests/test_terminals_api.py::TerminalCullingTest::test_culling 321s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=6476) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 321s pid, fd = os.forkpty() 321s 321s tests/test_gateway.py::TestGateway::test_gateway_kernel_lifecycle 321s tests/test_gateway.py::TestGateway::test_gateway_session_lifecycle 321s /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). 321s dt = datetime.utcnow().isoformat() + 'Z' 321s 321s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 321s =========================== short test summary info ============================ 321s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:86: Pandoc wasn't found. Skipping this test. 321s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:101: Pandoc wasn't found. Skipping this test. 321s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:109: Pandoc wasn't found. Skipping this test. 321s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:119: Pandoc wasn't found. Skipping this test. 321s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:128: Pandoc wasn't found. Skipping this test. 321s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/nbconvert/tests/test_nbconvert_handlers.py:145: Pandoc wasn't found. Skipping this test. 321s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:682: skip send2trash tests 321s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:592: skip send2trash tests 321s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:606: skip send2trash tests 321s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_contents_api.py:616: skip send2trash tests 321s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:332: skip send2trash tests 321s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:658: skip send2trash tests 321s SKIPPED [2] ../../../usr/lib/python3/dist-packages/notebook/services/contents/tests/test_manager.py:727: skip send2trash tests 321s SKIPPED [1] ../../../usr/lib/python3/dist-packages/notebook/tests/test_utils.py:83: run on windows only 321s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 321s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 321s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 321s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 321s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 321s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 321s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 321s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 321s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_path_deprecated 321s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_path_deprecated 321s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 321s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 321s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 321s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 321s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 321s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 321s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 321s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 321s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 321s = 27 failed, 277 passed, 20 skipped, 6 deselected, 2395 warnings, 8 errors in 22.00s = 321s *** END OF RUN 1: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 321s *** 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 323s ============================= test session starts ============================== 323s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 323s rootdir: /tmp/autopkgtest.vwY63z/autopkgtest_tmp 323s plugins: typeguard-4.4.4 323s collected 330 items / 303 deselected / 27 selected 323s run-last-failure: rerun previous 27 failures 323s 324s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 33%] 325s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFFEFF.F [100%] 325s 325s ==================================== ERRORS ==================================== 325s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 325s 325s self = 325s 325s def tearDown(self): 325s for k in self.kern_api.list().json(): 325s > self.kern_api.shutdown(k['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b89af113-6dab-4104-a2bd-d4ef1e5209a6 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ----------------------------- Captured stderr call ----------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "", line 1371, in _find_and_load 325s File "", line 1333, in _find_and_load_unlocked 325s File "", line 1267, in _find_spec 325s File "", line 1292, in find_spec 325s File "", line 1266, in _get_spec 325s File "", line 1384, in find_spec 325s KeyboardInterrupt 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 325s import jupyter_client 325s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 325s from .asynchronous import AsyncKernelClient 325s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 325s from .client import AsyncKernelClient # noqa 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 325s import zmq.asyncio 325s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 325s import asyncio 325s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 325s from .base_events import * 325s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 325s import ssl 325s File "/usr/lib/python3.14/ssl.py", line 376, in 325s DefaultVerifyPaths = namedtuple("DefaultVerifyPaths", 325s "cafile capath openssl_cafile_env openssl_cafile openssl_capath_env " 325s "openssl_capath") 325s File "/usr/lib/python3.14/collections/__init__.py", line 447, in namedtuple 325s __new__ = eval(code, namespace) 325s File "", line 0, in 325s KeyboardInterrupt 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcufc8jmw/runtime/kernel-b89af113-6dab-4104-a2bd-d4ef1e5209a6.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54737 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46631 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: b89af113-6dab-4104-a2bd-d4ef1e5209a6, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.900000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.220000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcufc8jmw/runtime/kernel-42b4ba09-30df-4b3b-af73-585c9ed9215e.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33783 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36397 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 42b4ba09-30df-4b3b-af73-585c9ed9215e, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.310000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 42b4ba09-30df-4b3b-af73-585c9ed9215e 325s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/42b4ba09-30df-4b3b-af73-585c9ed9215e/interrupt (::1) 2.620000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 325s yield maybe_future(km.restart_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 325s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 325s await ensure_async(kernel.restart_kernel(now=now)) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 325s await self._async_shutdown_kernel(now=now, restart=True) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/42b4ba09-30df-4b3b-af73-585c9ed9215e/restart (::1) 5.890000ms referer=None 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b89af113-6dab-4104-a2bd-d4ef1e5209a6 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b89af113-6dab-4104-a2bd-d4ef1e5209a6 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b89af113-6dab-4104-a2bd-d4ef1e5209a6 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b89af113-6dab-4104-a2bd-d4ef1e5209a6', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 325s yielded = ctx_run(next, result) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b89af113-6dab-4104-a2bd-d4ef1e5209a6 (::1) 3.410000ms referer=None 325s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 325s 325s self = 325s 325s def tearDown(self): 325s for k in self.kern_api.list().json(): 325s > self.kern_api.shutdown(k['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/f9d0efd2-f740-4824-9ea5-aafa72f95599 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ----------------------------- Captured stderr call ----------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 325s import jupyter_client 325s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 325s from .asynchronous import AsyncKernelClient 325s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 325s from .client import AsyncKernelClient # noqa 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 325s import zmq.asyncio 325s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 325s import asyncio 325s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 325s from .base_events import * 325s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 325s import ssl 325s File "/usr/lib/python3.14/ssl.py", line 100, in 325s import _ssl # if we can't import it, let the error propagate 325s ^^^^^^^^^^^ 325s KeyboardInterrupt 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9lne2m5a/runtime/kernel-f9d0efd2-f740-4824-9ea5-aafa72f95599.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45147 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34433 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: f9d0efd2-f740-4824-9ea5-aafa72f95599, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.980000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9lne2m5a/runtime/kernel-ec881e53-6222-4dbc-993f-a55e46bbb367.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58275 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50581 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec881e53-6222-4dbc-993f-a55e46bbb367, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.880000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ec881e53-6222-4dbc-993f-a55e46bbb367 325s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ec881e53-6222-4dbc-993f-a55e46bbb367/interrupt (::1) 1.280000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 325s yield maybe_future(km.restart_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 325s result = coro.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 325s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 325s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 325s yield self # This tells Task to wait for completion. 325s ^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 325s await ensure_async(kernel.restart_kernel(now=now)) 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 325s await self._async_shutdown_kernel(now=now, restart=True) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ec881e53-6222-4dbc-993f-a55e46bbb367/restart (::1) 4.020000ms referer=None 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f9d0efd2-f740-4824-9ea5-aafa72f95599 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9d0efd2-f740-4824-9ea5-aafa72f95599 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f9d0efd2-f740-4824-9ea5-aafa72f95599 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f9d0efd2-f740-4824-9ea5-aafa72f95599', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 325s from pathlib import Path 325s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 325s from pathlib._os import ( 325s ...<3 lines>... 325s ) 325s File "/usr/lib/python3.14/pathlib/_os.py", line 487, in 325s class DirEntryInfo(_PathInfoBase): 325s ...<42 lines>... 325s return False 325s KeyboardInterrupt 325s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-5bd6c692-b576-456b-bb8f-dd188e41871c.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36185 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33121 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5bd6c692-b576-456b-bb8f-dd188e41871c, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.810000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.490000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a5f12f3e-2dd5-40e4-87b9-2944f2e45c25 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a5f12f3e-2dd5-40e4-87b9-2944f2e45c25 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/22960dd0-d5e8-4bad-92e2-7294edac1b7f (::1) 1.270000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5bd6c692-b576-456b-bb8f-dd188e41871c 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5bd6c692-b576-456b-bb8f-dd188e41871c 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-66cd9bfa-8357-452b-ba39-f55ee0c46488.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48343 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34807 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 66cd9bfa-8357-452b-ba39-f55ee0c46488, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.990000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.760000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dce7f6af-6d09-411c-bb82-f421cc857da4 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dce7f6af-6d09-411c-bb82-f421cc857da4 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0002c620-1972-48cc-afcc-58b1a6bdb7c2 (::1) 0.460000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 66cd9bfa-8357-452b-ba39-f55ee0c46488 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 66cd9bfa-8357-452b-ba39-f55ee0c46488 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 3.660000ms referer=None 325s =================================== FAILURES =================================== 325s ______________________ KernelAPITest.test_default_kernel _______________________ 325s 325s self = 325s 325s def tearDown(self): 325s for k in self.kern_api.list().json(): 325s > self.kern_api.shutdown(k['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/84993271-9ed4-4aff-a48c-9ab89637b7d1 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log setup ------------------------------ 325s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpcufc8jmw/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpcufc8jmw/etc/jupyter'] for config files 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpcufc8jmw/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpcufc8jmw/config 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpcufc8jmw/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpcufc8jmw/config 325s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpcufc8jmw/notebooks 325s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 325s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 325s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 325s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 325s WARNING NotebookApp:handlers.py:612 Forbidden 325s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.610000ms referer=None 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcufc8jmw/runtime/kernel-84993271-9ed4-4aff-a48c-9ab89637b7d1.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43349 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42253 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 84993271-9ed4-4aff-a48c-9ab89637b7d1, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 33.540000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.370000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 84993271-9ed4-4aff-a48c-9ab89637b7d1 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84993271-9ed4-4aff-a48c-9ab89637b7d1 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/84993271-9ed4-4aff-a48c-9ab89637b7d1 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/84993271-9ed4-4aff-a48c-9ab89637b7d1', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 325s yielded = ctx_run(next, result) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/84993271-9ed4-4aff-a48c-9ab89637b7d1 (::1) 6.040000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 325s from pathlib import Path 325s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 325s from glob import _StringGlobber, _no_recurse_symlinks 325s File "/usr/lib/python3.14/glob.py", line 3, in 325s import contextlib 325s File "/usr/lib/python3.14/contextlib.py", line 7, in 325s from functools import wraps 325s File "/usr/lib/python3.14/functools.py", line 369, in 325s class partial: 325s ...<64 lines>... 325s __class_getitem__ = classmethod(GenericAlias) 325s File "/usr/lib/python3.14/functools.py", line 369, in partial 325s class partial: 325s 325s KeyboardInterrupt 325s ______________________ KernelAPITest.test_kernel_handler _______________________ 325s 325s self = 325s 325s def test_kernel_handler(self): 325s # GET kernel with given id 325s kid = self.kern_api.start().json()['id'] 325s r = self.kern_api.get(kid) 325s kern1 = r.json() 325s self.assertEqual(r.status_code, 200) 325s assert isinstance(kern1, dict) 325s self.assertIn('id', kern1) 325s self.assertEqual(kern1['id'], kid) 325s 325s # Request a bad kernel id and check that a JSON 325s # message is returned! 325s bad_id = '111-111-111-111-111' 325s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 325s self.kern_api.get(bad_id) 325s 325s # DELETE kernel with id 325s > r = self.kern_api.shutdown(kid) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3b60a387-c298-43b2-aa78-cf287f256384 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcufc8jmw/runtime/kernel-3b60a387-c298-43b2-aa78-cf287f256384.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53517 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32775 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3b60a387-c298-43b2-aa78-cf287f256384, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.750000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3b60a387-c298-43b2-aa78-cf287f256384 (::1) 0.400000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s 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 325s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 325s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.400000ms referer=None 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b60a387-c298-43b2-aa78-cf287f256384 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b60a387-c298-43b2-aa78-cf287f256384 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3b60a387-c298-43b2-aa78-cf287f256384 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3b60a387-c298-43b2-aa78-cf287f256384', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 325s yielded = ctx_run(next, result) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3b60a387-c298-43b2-aa78-cf287f256384 (::1) 4.470000ms referer=None 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 84993271-9ed4-4aff-a48c-9ab89637b7d1 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 84993271-9ed4-4aff-a48c-9ab89637b7d1 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/84993271-9ed4-4aff-a48c-9ab89637b7d1 (::1) 1.130000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3b60a387-c298-43b2-aa78-cf287f256384 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3b60a387-c298-43b2-aa78-cf287f256384 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 325s import json 325s File "/usr/lib/python3.14/json/__init__.py", line 106, in 325s from .decoder import JSONDecoder, JSONDecodeError 325s File "/usr/lib/python3.14/json/decoder.py", line 5, in 325s from json import scanner 325s File "/usr/lib/python3.14/json/scanner.py", line 11, in 325s NUMBER_RE = re.compile( 325s r'(-?(?:0|[1-9][0-9]*))(\.[0-9]+)?([eE][-+]?[0-9]+)?', 325s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 325s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 325s return _compile(pattern, flags) 325s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 325s p = _compiler.compile(pattern, flags) 325s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 325s code = _code(p, flags) 325s File "/usr/lib/python3.14/re/_compiler.py", line 596, in _code 325s _compile_info(code, p, flags) 325s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/re/_compiler.py", line 544, in _compile_info 325s charset = _get_charset_prefix(pattern, flags) 325s File "/usr/lib/python3.14/re/_compiler.py", line 490, in _get_charset_prefix 325s if flags & SRE_FLAG_IGNORECASE and flags & SRE_FLAG_LOCALE: 325s ~~~~~~^~~~~~~~~~~~~~~~~~~~~ 325s KeyboardInterrupt 325s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 325s 325s self = 325s 325s def test_main_kernel_handler(self): 325s # POST request 325s r = self.kern_api.start() 325s kern1 = r.json() 325s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 325s self.assertEqual(r.status_code, 201) 325s self.assertIsInstance(kern1, dict) 325s 325s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 325s expected_csp = '; '.join([ 325s "frame-ancestors 'self'", 325s 'report-uri ' + report_uri, 325s "default-src 'none'" 325s ]) 325s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 325s 325s # GET request 325s r = self.kern_api.list() 325s self.assertEqual(r.status_code, 200) 325s assert isinstance(r.json(), list) 325s self.assertEqual(r.json()[0]['id'], kern1['id']) 325s self.assertEqual(r.json()[0]['name'], kern1['name']) 325s 325s # create another kernel and check that they both are added to the 325s # list of kernels from a GET request 325s kern2 = self.kern_api.start().json() 325s assert isinstance(kern2, dict) 325s r = self.kern_api.list() 325s kernels = r.json() 325s self.assertEqual(r.status_code, 200) 325s assert isinstance(kernels, list) 325s self.assertEqual(len(kernels), 2) 325s 325s # Interrupt a kernel 325s r = self.kern_api.interrupt(kern2['id']) 325s self.assertEqual(r.status_code, 204) 325s 325s # Restart a kernel 325s > r = self.kern_api.restart(kern2['id']) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 325s return self._req('POST', url_path_join(id, 'restart')) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/42b4ba09-30df-4b3b-af73-585c9ed9215e/restart 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ----------------------------- Captured stderr call ----------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "", line 1371, in _find_and_load 325s File "", line 1333, in _find_and_load_unlocked 325s File "", line 1267, in _find_spec 325s File "", line 1292, in find_spec 325s File "", line 1266, in _get_spec 325s File "", line 1384, in find_spec 325s KeyboardInterrupt 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 325s import jupyter_client 325s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 325s from .asynchronous import AsyncKernelClient 325s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 325s from .client import AsyncKernelClient # noqa 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 325s import zmq.asyncio 325s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 325s import asyncio 325s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 325s from .base_events import * 325s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 325s import ssl 325s File "/usr/lib/python3.14/ssl.py", line 376, in 325s DefaultVerifyPaths = namedtuple("DefaultVerifyPaths", 325s "cafile capath openssl_cafile_env openssl_cafile openssl_capath_env " 325s "openssl_capath") 325s File "/usr/lib/python3.14/collections/__init__.py", line 447, in namedtuple 325s __new__ = eval(code, namespace) 325s File "", line 0, in 325s KeyboardInterrupt 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcufc8jmw/runtime/kernel-b89af113-6dab-4104-a2bd-d4ef1e5209a6.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54737 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46631 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: b89af113-6dab-4104-a2bd-d4ef1e5209a6, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.900000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.220000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpcufc8jmw/runtime/kernel-42b4ba09-30df-4b3b-af73-585c9ed9215e.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33783 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36397 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 42b4ba09-30df-4b3b-af73-585c9ed9215e, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.310000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 42b4ba09-30df-4b3b-af73-585c9ed9215e 325s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/42b4ba09-30df-4b3b-af73-585c9ed9215e/interrupt (::1) 2.620000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 325s yield maybe_future(km.restart_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 325s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 325s await ensure_async(kernel.restart_kernel(now=now)) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 325s await self._async_shutdown_kernel(now=now, restart=True) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/42b4ba09-30df-4b3b-af73-585c9ed9215e/restart (::1) 5.890000ms referer=None 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b89af113-6dab-4104-a2bd-d4ef1e5209a6 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b89af113-6dab-4104-a2bd-d4ef1e5209a6 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b89af113-6dab-4104-a2bd-d4ef1e5209a6 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b89af113-6dab-4104-a2bd-d4ef1e5209a6', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 325s yielded = ctx_run(next, result) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b89af113-6dab-4104-a2bd-d4ef1e5209a6 (::1) 3.410000ms referer=None 325s ________________________ KernelAPITest.test_no_kernels _________________________ 325s 325s self = 325s 325s def test_no_kernels(self): 325s """Make sure there are no kernels running at the start""" 325s kernels = self.kern_api.list().json() 325s > self.assertEqual(kernels, []) 325s E AssertionError: Lists differ: [{'id': 'b89af113-6dab-4104-a2bd-d4ef1e520[281 chars]: 0}] != [] 325s E 325s E First list contains 2 additional elements. 325s E First extra element 0: 325s E {'id': 'b89af113-6dab-4104-a2bd-d4ef1e5209a6', 'name': 'python3', 'last_activity': '2026-01-23T02:45:02.583573Z', 'execution_state': 'starting', 'connections': 0} 325s E 325s E + [] 325s E - [{'connections': 0, 325s E - 'execution_state': 'starting', 325s E - 'id': 'b89af113-6dab-4104-a2bd-d4ef1e5209a6', 325s E - 'last_activity': '2026-01-23T02:45:02.583573Z', 325s E - 'name': 'python3'}, 325s E - {'connections': 0, 325s E - 'execution_state': 'starting', 325s E - 'id': '42b4ba09-30df-4b3b-af73-585c9ed9215e', 325s E - 'last_activity': '2026-01-23T02:45:02.600552Z', 325s E - 'name': 'python3'}] 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.480000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.910000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b89af113-6dab-4104-a2bd-d4ef1e5209a6 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b89af113-6dab-4104-a2bd-d4ef1e5209a6 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/b89af113-6dab-4104-a2bd-d4ef1e5209a6 (::1) 0.620000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 42b4ba09-30df-4b3b-af73-585c9ed9215e 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 42b4ba09-30df-4b3b-af73-585c9ed9215e 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/42b4ba09-30df-4b3b-af73-585c9ed9215e (::1) 0.660000ms 325s ---------------------------- Captured log teardown ----------------------------- 325s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 325s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 325s _____________________ AsyncKernelAPITest.test_connections ______________________ 325s 325s self = 325s 325s def tearDown(self): 325s for k in self.kern_api.list().json(): 325s > self.kern_api.shutdown(k['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log setup ------------------------------ 325s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp9lne2m5a/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp9lne2m5a/etc/jupyter'] for config files 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp9lne2m5a/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp9lne2m5a/config 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp9lne2m5a/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp9lne2m5a/config 325s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp9lne2m5a/notebooks 325s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 325s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 325s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 325s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 325s WARNING NotebookApp:handlers.py:612 Forbidden 325s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.650000ms referer=None 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9lne2m5a/runtime/kernel-808b4fec-38d7-4dbd-aced-f29c9d564912.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53249 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51233 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 808b4fec-38d7-4dbd-aced-f29c9d564912, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.150000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912 (::1) 0.410000ms 325s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912/channels 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 325s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35751 325s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 325s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 808b4fec-38d7-4dbd-aced-f29c9d564912) to 5.4 (client). 325s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912/channels (::1) 399.010000ms 325s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912/channels 325s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51233 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35751 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53249 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35143 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35751 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53249 325s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 325s Setting websocket_ping_timeout=30000 325s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912 (::1) 1.970000ms 325s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:handlers.py:579 Websocket closed 808b4fec-38d7-4dbd-aced-f29c9d564912:91a61588-b98d7d33e7d9acd104bb6624 325s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 808b4fec-38d7-4dbd-aced-f29c9d564912:91a61588-b98d7d33e7d9acd104bb6624 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912 (::1) 0.500000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912 (::1) 0.490000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.590000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 808b4fec-38d7-4dbd-aced-f29c9d564912 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 808b4fec-38d7-4dbd-aced-f29c9d564912 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912 (::1) 3.610000ms referer=None 325s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 325s 325s self = 325s 325s def tearDown(self): 325s for k in self.kern_api.list().json(): 325s > self.kern_api.shutdown(k['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/83062b16-90c1-4945-a9b9-870b6ed20efa 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9lne2m5a/runtime/kernel-83062b16-90c1-4945-a9b9-870b6ed20efa.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41091 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37975 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 83062b16-90c1-4945-a9b9-870b6ed20efa, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.210000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 808b4fec-38d7-4dbd-aced-f29c9d564912 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 808b4fec-38d7-4dbd-aced-f29c9d564912 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/808b4fec-38d7-4dbd-aced-f29c9d564912 (::1) 0.480000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 83062b16-90c1-4945-a9b9-870b6ed20efa 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 83062b16-90c1-4945-a9b9-870b6ed20efa 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/83062b16-90c1-4945-a9b9-870b6ed20efa (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/83062b16-90c1-4945-a9b9-870b6ed20efa', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/83062b16-90c1-4945-a9b9-870b6ed20efa (::1) 7.780000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "", line 1371, in _find_and_load 325s File "", line 1333, in _find_and_load_unlocked 325s File "", line 1267, in _find_spec 325s File "", line 1292, in find_spec 325s File "", line 1266, in _get_spec 325s File "", line 1393, in find_spec 325s File "", line 133, in _path_join 325s KeyboardInterrupt 325s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 325s 325s self = 325s 325s def test_kernel_handler(self): 325s # GET kernel with given id 325s kid = self.kern_api.start().json()['id'] 325s r = self.kern_api.get(kid) 325s kern1 = r.json() 325s self.assertEqual(r.status_code, 200) 325s assert isinstance(kern1, dict) 325s self.assertIn('id', kern1) 325s self.assertEqual(kern1['id'], kid) 325s 325s # Request a bad kernel id and check that a JSON 325s # message is returned! 325s bad_id = '111-111-111-111-111' 325s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 325s self.kern_api.get(bad_id) 325s 325s # DELETE kernel with id 325s > r = self.kern_api.shutdown(kid) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9lne2m5a/runtime/kernel-b3e9f793-31b8-41f8-b5c0-d044d0ae2de5.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55803 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53551 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: b3e9f793-31b8-41f8-b5c0-d044d0ae2de5, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.700000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 (::1) 0.550000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s 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 325s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 325s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 3.820000ms referer=None 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/b3e9f793-31b8-41f8-b5c0-d044d0ae2de5', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 (::1) 5.960000ms referer=None 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 83062b16-90c1-4945-a9b9-870b6ed20efa 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 83062b16-90c1-4945-a9b9-870b6ed20efa 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/83062b16-90c1-4945-a9b9-870b6ed20efa (::1) 1.380000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 325s from ._version import ( 325s ...<4 lines>... 325s ) 325s File "", line 1371, in _find_and_load 325s File "", line 1333, in _find_and_load_unlocked 325s File "", line 1267, in _find_spec 325s File "", line 1292, in find_spec 325s File "", line 1266, in _get_spec 325s File "", line 1399, in find_spec 325s File "", line 1352, in _get_spec 325s KeyboardInterrupt 325s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 325s 325s self = 325s 325s def test_main_kernel_handler(self): 325s # POST request 325s r = self.kern_api.start() 325s kern1 = r.json() 325s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 325s self.assertEqual(r.status_code, 201) 325s self.assertIsInstance(kern1, dict) 325s 325s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 325s expected_csp = '; '.join([ 325s "frame-ancestors 'self'", 325s 'report-uri ' + report_uri, 325s "default-src 'none'" 325s ]) 325s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 325s 325s # GET request 325s r = self.kern_api.list() 325s self.assertEqual(r.status_code, 200) 325s assert isinstance(r.json(), list) 325s self.assertEqual(r.json()[0]['id'], kern1['id']) 325s self.assertEqual(r.json()[0]['name'], kern1['name']) 325s 325s # create another kernel and check that they both are added to the 325s # list of kernels from a GET request 325s kern2 = self.kern_api.start().json() 325s assert isinstance(kern2, dict) 325s r = self.kern_api.list() 325s kernels = r.json() 325s self.assertEqual(r.status_code, 200) 325s assert isinstance(kernels, list) 325s self.assertEqual(len(kernels), 2) 325s 325s # Interrupt a kernel 325s r = self.kern_api.interrupt(kern2['id']) 325s self.assertEqual(r.status_code, 204) 325s 325s # Restart a kernel 325s > r = self.kern_api.restart(kern2['id']) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 325s return self._req('POST', url_path_join(id, 'restart')) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/ec881e53-6222-4dbc-993f-a55e46bbb367/restart 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ----------------------------- Captured stderr call ----------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 325s import jupyter_client 325s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 325s from .asynchronous import AsyncKernelClient 325s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 325s from .client import AsyncKernelClient # noqa 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 325s import zmq.asyncio 325s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 325s import asyncio 325s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 325s from .base_events import * 325s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 325s import ssl 325s File "/usr/lib/python3.14/ssl.py", line 100, in 325s import _ssl # if we can't import it, let the error propagate 325s ^^^^^^^^^^^ 325s KeyboardInterrupt 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9lne2m5a/runtime/kernel-f9d0efd2-f740-4824-9ea5-aafa72f95599.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45147 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34433 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: f9d0efd2-f740-4824-9ea5-aafa72f95599, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.980000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp9lne2m5a/runtime/kernel-ec881e53-6222-4dbc-993f-a55e46bbb367.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58275 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50581 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: ec881e53-6222-4dbc-993f-a55e46bbb367, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.880000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: ec881e53-6222-4dbc-993f-a55e46bbb367 325s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/ec881e53-6222-4dbc-993f-a55e46bbb367/interrupt (::1) 1.280000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 325s yield maybe_future(km.restart_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 325s result = coro.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 325s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 325s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 325s yield self # This tells Task to wait for completion. 325s ^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 325s await ensure_async(kernel.restart_kernel(now=now)) 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 325s await self._async_shutdown_kernel(now=now, restart=True) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/ec881e53-6222-4dbc-993f-a55e46bbb367/restart (::1) 4.020000ms referer=None 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f9d0efd2-f740-4824-9ea5-aafa72f95599 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9d0efd2-f740-4824-9ea5-aafa72f95599 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/f9d0efd2-f740-4824-9ea5-aafa72f95599 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/f9d0efd2-f740-4824-9ea5-aafa72f95599', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 325s yield maybe_future(km.shutdown_kernel(kernel_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 325s 325s self = 325s 325s def test_no_kernels(self): 325s """Make sure there are no kernels running at the start""" 325s kernels = self.kern_api.list().json() 325s > self.assertEqual(kernels, []) 325s E AssertionError: Lists differ: [{'id': 'f9d0efd2-f740-4824-9ea5-aafa72f95[281 chars]: 0}] != [] 325s E 325s E First list contains 2 additional elements. 325s E First extra element 0: 325s E {'id': 'f9d0efd2-f740-4824-9ea5-aafa72f95599', 'name': 'python3', 'last_activity': '2026-01-23T02:45:03.272600Z', 'execution_state': 'starting', 'connections': 0} 325s E 325s E + [] 325s E - [{'connections': 0, 325s E - 'execution_state': 'starting', 325s E - 'id': 'f9d0efd2-f740-4824-9ea5-aafa72f95599', 325s E - 'last_activity': '2026-01-23T02:45:03.272600Z', 325s E - 'name': 'python3'}, 325s E - {'connections': 0, 325s E - 'execution_state': 'starting', 325s E - 'id': 'ec881e53-6222-4dbc-993f-a55e46bbb367', 325s E - 'last_activity': '2026-01-23T02:45:03.293567Z', 325s E - 'name': 'python3'}] 325s 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.470000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f9d0efd2-f740-4824-9ea5-aafa72f95599 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9d0efd2-f740-4824-9ea5-aafa72f95599 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/f9d0efd2-f740-4824-9ea5-aafa72f95599 (::1) 0.390000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for ec881e53-6222-4dbc-993f-a55e46bbb367 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: ec881e53-6222-4dbc-993f-a55e46bbb367 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/ec881e53-6222-4dbc-993f-a55e46bbb367 (::1) 0.440000ms 325s ---------------------------- Captured log teardown ----------------------------- 325s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f9d0efd2-f740-4824-9ea5-aafa72f95599 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: b3e9f793-31b8-41f8-b5c0-d044d0ae2de5 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 808b4fec-38d7-4dbd-aced-f29c9d564912 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 83062b16-90c1-4945-a9b9-870b6ed20efa 325s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 325s __________________________ SessionAPITest.test_create __________________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/5eea11bd-ba06-4819-bfb5-3e99cc1011ac 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log setup ------------------------------ 325s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp4g9hrfdx/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp4g9hrfdx/etc/jupyter'] for config files 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4g9hrfdx/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp4g9hrfdx/config 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4g9hrfdx/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp4g9hrfdx/config 325s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp4g9hrfdx/notebooks 325s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 325s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 325s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 325s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 325s WARNING NotebookApp:handlers.py:612 Forbidden 325s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.520000ms referer=None 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-855b2676-1207-48e5-86ca-b365268b3368.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41277 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40713 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 855b2676-1207-48e5-86ca-b365268b3368, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4g9hrfdx/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.060000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/5eea11bd-ba06-4819-bfb5-3e99cc1011ac (::1) 0.450000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.450000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 855b2676-1207-48e5-86ca-b365268b3368 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 855b2676-1207-48e5-86ca-b365268b3368 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/5eea11bd-ba06-4819-bfb5-3e99cc1011ac (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/5eea11bd-ba06-4819-bfb5-3e99cc1011ac', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/5eea11bd-ba06-4819-bfb5-3e99cc1011ac (::1) 4.340000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "/usr/lib/python3.14/subprocess.py", line 51, in 325s import threading 325s File "", line 1371, in _find_and_load 325s File "", line 1342, in _find_and_load_unlocked 325s File "", line 938, in _load_unlocked 325s File "", line 755, in exec_module 325s File "", line 888, in get_code 325s File "", line 511, in _compile_bytecode 325s KeyboardInterrupt 325s __________________ SessionAPITest.test_create_console_session __________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/31de156c-9e3c-4a3c-be69-f1f1fb9cdfc1 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-9f592df8-7d6f-4084-8c0b-2d4b9709e523.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51603 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35051 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9f592df8-7d6f-4084-8c0b-2d4b9709e523, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4g9hrfdx/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.450000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.160000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 855b2676-1207-48e5-86ca-b365268b3368 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 855b2676-1207-48e5-86ca-b365268b3368 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/5eea11bd-ba06-4819-bfb5-3e99cc1011ac (::1) 2.340000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f592df8-7d6f-4084-8c0b-2d4b9709e523 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f592df8-7d6f-4084-8c0b-2d4b9709e523 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/31de156c-9e3c-4a3c-be69-f1f1fb9cdfc1 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/31de156c-9e3c-4a3c-be69-f1f1fb9cdfc1', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/31de156c-9e3c-4a3c-be69-f1f1fb9cdfc1 (::1) 3.850000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "", line 1371, in _find_and_load 325s File "", line 1342, in _find_and_load_unlocked 325s File "", line 938, in _load_unlocked 325s File "", line 755, in exec_module 325s File "", line 851, in get_code 325s File "", line 951, in get_data 325s KeyboardInterrupt 325s ____________________ SessionAPITest.test_create_deprecated _____________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/316ec060-ac1b-49ad-8263-261a455898ee 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-f3447941-1538-4898-8ecd-2710662e2850.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60107 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49099 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: f3447941-1538-4898-8ecd-2710662e2850, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4g9hrfdx/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.290000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9f592df8-7d6f-4084-8c0b-2d4b9709e523 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9f592df8-7d6f-4084-8c0b-2d4b9709e523 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/31de156c-9e3c-4a3c-be69-f1f1fb9cdfc1 (::1) 0.550000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f3447941-1538-4898-8ecd-2710662e2850 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3447941-1538-4898-8ecd-2710662e2850 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/316ec060-ac1b-49ad-8263-261a455898ee (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/316ec060-ac1b-49ad-8263-261a455898ee', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "/usr/lib/python3.14/subprocess.py", line 49, in 325s import signal 325s File "/usr/lib/python3.14/signal.py", line 7, in 325s _IntEnum._convert_( 325s ~~~~~~~~~~~~~~~~~~^ 325s 'Signals', __name__, 325s ^^^^^^^^^^^^^^^^^^^^ 325s ...<2 lines>... 325s and (name.startswith('SIG') and not name.startswith('SIG_')) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s or name.startswith('CTRL_')) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 325s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 325s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 325s setattr(enum_class, name, member) 325s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/enum.py", line 821, in __setattr__ 325s super().__setattr__(name, value) 325s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^ 325s KeyboardInterrupt 325s ___________________ SessionAPITest.test_create_file_session ____________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/22960dd0-d5e8-4bad-92e2-7294edac1b7f 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-a5f12f3e-2dd5-40e4-87b9-2944f2e45c25.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41073 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60693 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: a5f12f3e-2dd5-40e4-87b9-2944f2e45c25, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4g9hrfdx/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.380000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.240000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for f3447941-1538-4898-8ecd-2710662e2850 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: f3447941-1538-4898-8ecd-2710662e2850 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/316ec060-ac1b-49ad-8263-261a455898ee (::1) 0.540000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a5f12f3e-2dd5-40e4-87b9-2944f2e45c25 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a5f12f3e-2dd5-40e4-87b9-2944f2e45c25 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/22960dd0-d5e8-4bad-92e2-7294edac1b7f (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/22960dd0-d5e8-4bad-92e2-7294edac1b7f', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 325s import json 325s File "/usr/lib/python3.14/json/__init__.py", line 107, in 325s from .encoder import JSONEncoder 325s File "/usr/lib/python3.14/json/encoder.py", line 30, in 325s for i in range(0x20): 325s ~~~~~^^^^^^ 325s KeyboardInterrupt 325s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 325s 325s self = 325s 325s def test_create_with_kernel_id(self): 325s # create a new kernel 325s r = self.request('POST', 'api/kernels') 325s r.raise_for_status() 325s kernel = r.json() 325s 325s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 325s self.assertEqual(resp.status_code, 201) 325s newsession = resp.json() 325s self.assertIn('id', newsession) 325s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 325s self.assertEqual(newsession['kernel']['id'], kernel['id']) 325s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 325s 325s sessions = self.sess_api.list().json() 325s > self.assertEqual(sessions, [newsession]) 325s E AssertionError: Lists differ: [{'id': '22960dd0-d5e8-4bad-92e2-7294edac1b7f', 'p[553 chars]ne}}] != [{'id': 'c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f', 'p[279 chars]ne}}] 325s E 325s E First differing element 0: 325s E {'id': '22960dd0-d5e8-4bad-92e2-7294edac1b7f', 'p[218 chars]: 0}} 325s E {'id': 'c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f', 'p[278 chars]one}} 325s E 325s E First list contains 1 additional elements. 325s E First extra element 1: 325s E {'id': 'c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '5bd6c692-b576-456b-bb8f-dd188e41871c', 'name': 'python3', 'last_activity': '2026-01-23T02:45:03.579286Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 325s E 325s E Diff is 830 characters long. Set self.maxDiff to None to see it. 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-5bd6c692-b576-456b-bb8f-dd188e41871c.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36185 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33121 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5bd6c692-b576-456b-bb8f-dd188e41871c, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.810000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.490000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a5f12f3e-2dd5-40e4-87b9-2944f2e45c25 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a5f12f3e-2dd5-40e4-87b9-2944f2e45c25 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/22960dd0-d5e8-4bad-92e2-7294edac1b7f (::1) 1.270000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5bd6c692-b576-456b-bb8f-dd188e41871c 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5bd6c692-b576-456b-bb8f-dd188e41871c 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most re/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 325s gc.collect() 325s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 325s cent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ---------------------------- Captured stderr setup ----------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "", line 1371, in _find_and_load 325s File "", line 1342, in _find_and_load_unlocked 325s File "", line 949, in _load_unlocked 325s KeyboardInterrupt 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.550000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-4fa15c8a-d44e-4304-8d2e-d3e182aa4ded.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43689 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51303 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4fa15c8a-d44e-4304-8d2e-d3e182aa4ded, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.760000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5bd6c692-b576-456b-bb8f-dd188e41871c 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5bd6c692-b576-456b-bb8f-dd188e41871c 325s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f (::1) 1.450000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.320000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4fa15c8a-d44e-4304-8d2e-d3e182aa4ded 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4fa15c8a-d44e-4304-8d2e-d3e182aa4ded 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "/usr/lib/python3.14/subprocess.py", line 49, in 325s import signal 325s File "/usr/lib/python3.14/signal.py", line 7, in 325s _IntEnum._convert_( 325s ~~~~~~~~~~~~~~~~~~^ 325s 'Signals', __name__, 325s ^^^^^^^^^^^^^^^^^^^^ 325s ...<2 lines>... 325s and (name.startswith('SIG') and not name.startswith('SIG_')) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s or name.startswith('CTRL_')) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 325s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 325s File "/usr/lib/python3.14/enum.py", line 1869, in convert_class 325s member = new_member(enum_class, *value) 325s KeyboardInterrupt 325s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.510000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-e2e988c8-732d-4114-9c0b-402d7d9755fb.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34289 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53993 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: e2e988c8-732d-4114-9c0b-402d7d9755fb, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp4g9hrfdx/notebooks/foo'} 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4fa15c8a-d44e-4304-8d2e-d3e182aa4ded 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4fa15c8a-d44e-4304-8d2e-d3e182aa4ded 325s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f (::1) 13.290000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.100000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e2e988c8-732d-4114-9c0b-402d7d9755fb 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e2e988c8-732d-4114-9c0b-402d7d9755fb 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c3dd77f6-3a1e-4420-9fc8-4d28303f3e9f', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "", line 1371, in _find_and_load 325s File "", line 1342, in _find_and_load_unlocked 325s File "", line 938, in _load_unlocked 325s File "", line 755, in exec_module 325s File "", line 851, in get_code 325s File "", line 951, in get_data 325s KeyboardInterrupt 325s _______________________ SessionAPITest.test_modify_type ________________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/97ca7d6e-4929-43a2-a048-ec3a4300af0f 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp4g9hrfdx/runtime/kernel-e7403da7-34bc-44ed-9fe5-98cdd65da386.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37631 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34281 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: e7403da7-34bc-44ed-9fe5-98cdd65da386, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp4g9hrfdx/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.360000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/97ca7d6e-4929-43a2-a048-ec3a4300af0f (::1) 1.310000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e7403da7-34bc-44ed-9fe5-98cdd65da386 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7403da7-34bc-44ed-9fe5-98cdd65da386 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/97ca7d6e-4929-43a2-a048-ec3a4300af0f (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/97ca7d6e-4929-43a2-a048-ec3a4300af0f', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 325s yielded = self.gen.send(value) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 325s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 325s stopper = ensure_async(km.shutdown_kernel(now, restart)) 325s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 325s return _runner_map[name].run(inner) 325s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 325s return fut.result(None) 325s ~~~~~~~~~~^^^^^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 325s return self.__get_result() 325s ~~~~~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 325s raise self._exception 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/97ca7d6e-4929-43a2-a048-ec3a4300af0f (::1) 3.870000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "", line 1371, in _find_and_load 325s File "", line 1342, in _find_and_load_unlocked 325s File "", line 938, in _load_unlocked 325s File "", line 755, in exec_module 325s File "", line 888, in get_code 325s File "", line 511, in _compile_bytecode 325s KeyboardInterrupt 325s ---------------------------- Captured log teardown ----------------------------- 325s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e7403da7-34bc-44ed-9fe5-98cdd65da386 325s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 325s _______________________ AsyncSessionAPITest.test_create ________________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/68200db7-fe62-40c9-ad48-9c923f257405 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log setup ------------------------------ 325s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpbc48a5dm/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpbc48a5dm/etc/jupyter'] for config files 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpbc48a5dm/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpbc48a5dm/config 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpbc48a5dm/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 325s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpbc48a5dm/config 325s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpbc48a5dm/notebooks 325s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 325s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 325s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 325s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 325s WARNING NotebookApp:handlers.py:612 Forbidden 325s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.620000ms referer=None 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-c1c48700-5006-4e67-aede-f1f6ebffa498.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41461 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55161 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: c1c48700-5006-4e67-aede-f1f6ebffa498, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbc48a5dm/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.200000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/68200db7-fe62-40c9-ad48-9c923f257405 (::1) 0.720000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c1c48700-5006-4e67-aede-f1f6ebffa498 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c1c48700-5006-4e67-aede-f1f6ebffa498 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/68200db7-fe62-40c9-ad48-9c923f257405 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/68200db7-fe62-40c9-ad48-9c923f257405', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "/usr/lib/python3.14/subprocess.py", line 49, in 325s import signal 325s File "", line 1371, in _find_and_load 325s File "", line 1342, in _find_and_load_unlocked 325s File "", line 938, in _load_unlocked 325s File "", line 755, in exec_module 325s File "", line 888, in get_code 325s File "", line 511, in _compile_bytecode 325s KeyboardInterrupt 325s _______________ AsyncSessionAPITest.test_create_console_session ________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/fac76a05-4582-4bb6-b452-ab06b054dd93 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-88715aeb-cbf7-4443-812c-7669ba6a446b.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42661 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38825 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 88715aeb-cbf7-4443-812c-7669ba6a446b, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbc48a5dm/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.640000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for c1c48700-5006-4e67-aede-f1f6ebffa498 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c1c48700-5006-4e67-aede-f1f6ebffa498 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/68200db7-fe62-40c9-ad48-9c923f257405 (::1) 0.530000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88715aeb-cbf7-4443-812c-7669ba6a446b 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88715aeb-cbf7-4443-812c-7669ba6a446b 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/fac76a05-4582-4bb6-b452-ab06b054dd93 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/fac76a05-4582-4bb6-b452-ab06b054dd93', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dec0b603-527e-4c15-b888-877e4bae2ae4 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ----------------------------- Captured stderr call ----------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 325s from pathlib import Path 325s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 325s from glob import _StringGlobber, _no_recurse_symlinks 325s File "/usr/lib/python3.14/glob.py", line 5, in 325s import re 325s File "/usr/lib/python3.14/re/__init__.py", line 126, in 325s from . import _compiler, _parser 325s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 325s from . import _parser 325s File "/usr/lib/python3.14/re/_parser.py", line 15, in 325s from ._constants import * 325s File "/usr/lib/python3.14/re/_constants.py", line 70, in 325s MAXREPEAT = _NamedIntConstant(MAXREPEAT, 'MAXREPEAT') 325s File "/usr/lib/python3.14/re/_constants.py", line 61, in __new__ 325s self = super(_NamedIntConstant, cls).__new__(cls, value) 325s KeyboardInterrupt 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-45da84a9-cda4-4a9a-959a-385d7fac9866.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39779 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51635 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 45da84a9-cda4-4a9a-959a-385d7fac9866, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbc48a5dm/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.630000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.300000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 88715aeb-cbf7-4443-812c-7669ba6a446b 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88715aeb-cbf7-4443-812c-7669ba6a446b 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/fac76a05-4582-4bb6-b452-ab06b054dd93 (::1) 1.280000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45da84a9-cda4-4a9a-959a-385d7fac9866 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45da84a9-cda4-4a9a-959a-385d7fac9866 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dec0b603-527e-4c15-b888-877e4bae2ae4 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dec0b603-527e-4c15-b888-877e4bae2ae4', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/dec0b603-527e-4c15-b888-877e4bae2ae4 (::1) 3.730000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 325s from pathlib import Path 325s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 325s class PureWindowsPath(PurePath): 325s ...<7 lines>... 325s __slots__ = () 325s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 325s import ntpath 325s File "/usr/lib/python3.14/ntpath.py", line 45, in 325s from _winapi import ( 325s ...<2 lines>... 325s LCMAP_LOWERCASE as _LCMAP_LOWERCASE) 325s File "", line 1360, in _find_and_load 325s KeyboardInterrupt 325s _________________ AsyncSessionAPITest.test_create_file_session _________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/0002c620-1972-48cc-afcc-58b1a6bdb7c2 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-dce7f6af-6d09-411c-bb82-f421cc857da4.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55971 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59531 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: dce7f6af-6d09-411c-bb82-f421cc857da4, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbc48a5dm/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.220000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45da84a9-cda4-4a9a-959a-385d7fac9866 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45da84a9-cda4-4a9a-959a-385d7fac9866 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dec0b603-527e-4c15-b888-877e4bae2ae4 (::1) 0.460000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dce7f6af-6d09-411c-bb82-f421cc857da4 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dce7f6af-6d09-411c-bb82-f421cc857da4 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/0002c620-1972-48cc-afcc-58b1a6bdb7c2 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/0002c620-1972-48cc-afcc-58b1a6bdb7c2', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/0002c620-1972-48cc-afcc-58b1a6bdb7c2 (::1) 3.740000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 325s from __future__ import annotations 325s File "/usr/lib/python3.14/__future__.py", line 137, in 325s barry_as_FLUFL = _Feature((3, 1, 0, "alpha", 2), 325s (4, 0, 0, "alpha", 0), 325s CO_FUTURE_BARRY_AS_BDFL) 325s File "/usr/lib/python3.14/__future__.py", line 83, in __init__ 325s def __init__(self, optionalRelease, mandatoryRelease, compiler_flag): 325s 325s KeyboardInterrupt 325s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 325s 325s self = 325s 325s def test_create_with_kernel_id(self): 325s # create a new kernel 325s r = self.request('POST', 'api/kernels') 325s r.raise_for_status() 325s kernel = r.json() 325s 325s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 325s self.assertEqual(resp.status_code, 201) 325s newsession = resp.json() 325s self.assertIn('id', newsession) 325s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 325s self.assertEqual(newsession['kernel']['id'], kernel['id']) 325s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 325s 325s sessions = self.sess_api.list().json() 325s > self.assertEqual(sessions, [newsession]) 325s E AssertionError: Lists differ: [{'id': '0002c620-1972-48cc-afcc-58b1a6bdb7c2', 'p[553 chars]ne}}] != [{'id': '8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592', 'p[279 chars]ne}}] 325s E 325s E First differing element 0: 325s E {'id': '0002c620-1972-48cc-afcc-58b1a6bdb7c2', 'p[218 chars]: 0}} 325s E {'id': '8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592', 'p[278 chars]one}} 325s E 325s E First list contains 1 additional elements. 325s E First extra element 1: 325s E {'id': '8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '66cd9bfa-8357-452b-ba39-f55ee0c46488', 'name': 'python3', 'last_activity': '2026-01-23T02:45:04.006190Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 325s E 325s E Diff is 830 characters long. Set self.maxDiff to None to see it. 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-66cd9bfa-8357-452b-ba39-f55ee0c46488.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48343 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34807 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 66cd9bfa-8357-452b-ba39-f55ee0c46488, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.990000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.760000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for dce7f6af-6d09-411c-bb82-f421cc857da4 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dce7f6af-6d09-411c-bb82-f421cc857da4 325s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/0002c620-1972-48cc-afcc-58b1a6bdb7c2 (::1) 0.460000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 66cd9bfa-8357-452b-ba39-f55ee0c46488 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 66cd9bfa-8357-452b-ba39-f55ee0c46488 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 3.660000ms referer=None 325s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ---------------------------- Captured stderr setup ----------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "/usr/lib/python3.14/subprocess.py", line 51, in 325s import threading 325s File "", line 1371, in _find_and_load 325s File "", line 1342, in _find_and_load_unlocked 325s File "", line 938, in _load_unlocked 325s File "", line 755, in exec_module 325s File "", line 888, in get_code 325s File "", line 511, in _compile_bytecode 325s KeyboardInterrupt 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.580000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-8e2a1fd3-090b-4a42-82bc-3848311927f5.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54619 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49067 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8e2a1fd3-090b-4a42-82bc-3848311927f5, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.980000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 66cd9bfa-8357-452b-ba39-f55ee0c46488 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 66cd9bfa-8357-452b-ba39-f55ee0c46488 325s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 1.610000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.360000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e2a1fd3-090b-4a42-82bc-3848311927f5 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e2a1fd3-090b-4a42-82bc-3848311927f5 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 4.940000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "/usr/lib/python3.14/subprocess.py", line 49, in 325s import signal 325s File "", line 1371, in _find_and_load 325s File "", line 1342, in _find_and_load_unlocked 325s File "", line 938, in _load_unlocked 325s File "", line 755, in exec_module 325s File "", line 888, in get_code 325s File "", line 511, in _compile_bytecode 325s KeyboardInterrupt 325s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.540000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-72b9a21f-69c6-4564-acb6-fd02b55fa6bd.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57711 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53485 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 72b9a21f-69c6-4564-acb6-fd02b55fa6bd, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpbc48a5dm/notebooks/foo'} 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8e2a1fd3-090b-4a42-82bc-3848311927f5 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e2a1fd3-090b-4a42-82bc-3848311927f5 325s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 13.520000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.190000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 72b9a21f-69c6-4564-acb6-fd02b55fa6bd 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 72b9a21f-69c6-4564-acb6-fd02b55fa6bd 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8cbd8ba2-6b42-4eb4-90db-1a1c04bfc592 (::1) 5.190000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 325s from ipykernel import kernelapp as app 325s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 325s from .connect import * # noqa: F403 325s ^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 325s from subprocess import PIPE, Popen 325s File "/usr/lib/python3.14/subprocess.py", line 46, in 325s import locale 325s File "/usr/lib/python3.14/locale.py", line 1774, in 325s __all__.append("LC_MESSAGES") 325s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 325s KeyboardInterrupt 325s _____________________ AsyncSessionAPITest.test_modify_type _____________________ 325s 325s @self.addCleanup 325s def cleanup_sessions(): 325s for session in self.sess_api.list().json(): 325s > self.sess_api.delete(session['id']) 325s 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 325s return self._req('DELETE', id) 325s ^^^^^^^^^^^^^^^^^^^^^^^ 325s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 325s response.raise_for_status() 325s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 325s 325s self = 325s 325s def raise_for_status(self): 325s """Raises :class:`HTTPError`, if one occurred.""" 325s 325s http_error_msg = "" 325s if isinstance(self.reason, bytes): 325s # We attempt to decode utf-8 first because some servers 325s # choose to localize their reason strings. If the string 325s # isn't utf-8, we fall back to iso-8859-1 for all other 325s # encodings. (See PR #3538) 325s try: 325s reason = self.reason.decode("utf-8") 325s except UnicodeDecodeError: 325s reason = self.reason.decode("iso-8859-1") 325s else: 325s reason = self.reason 325s 325s if 400 <= self.status_code < 500: 325s http_error_msg = ( 325s f"{self.status_code} Client Error: {reason} for url: {self.url}" 325s ) 325s 325s elif 500 <= self.status_code < 600: 325s http_error_msg = ( 325s f"{self.status_code} Server Error: {reason} for url: {self.url}" 325s ) 325s 325s if http_error_msg: 325s > raise HTTPError(http_error_msg, response=self) 325s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/edca129e-07c0-45c4-a03d-56d1fca35df5 325s 325s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 325s ------------------------------ Captured log call ------------------------------- 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 325s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpbc48a5dm/runtime/kernel-76904b94-7572-415f-ae28-fad70f81e76d.json'] 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33399 325s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41329 325s INFO NotebookApp:kernelmanager.py:179 Kernel started: 76904b94-7572-415f-ae28-fad70f81e76d, name: python3 325s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpbc48a5dm/notebooks/foo'} 325s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.360000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/edca129e-07c0-45c4-a03d-56d1fca35df5 (::1) 1.260000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.350000ms 325s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 325s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 76904b94-7572-415f-ae28-fad70f81e76d 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76904b94-7572-415f-ae28-fad70f81e76d 325s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/edca129e-07c0-45c4-a03d-56d1fca35df5 (::1) 325s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/edca129e-07c0-45c4-a03d-56d1fca35df5', version='HTTP/1.1', remote_ip='::1') 325s Traceback (most recent call last): 325s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 325s result = await result 325s ^^^^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 325s future.result() 325s ~~~~~~~~~~~~~^^ 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 325s yield maybe_future(sm.delete_session(session_id)) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 325s yielded = self.gen.throw(exc) 325s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 325s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 325s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 325s value = future.result() 325s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 325s raise self._exception.with_traceback(self._exception_tb) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 325s result = coro.send(None) 325s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 325s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 325s raise km.ready.exception() # type: ignore[misc] 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 325s await kernel_awaitable 325s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 325s result = await obj 325s ^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 325s raise e 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 325s out = await method(self, *args, **kwargs) 325s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 325s await self._async_finish_shutdown(restart=restart) 325s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 325s await asyncio.wait_for( 325s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 325s ) 325s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 325s async with timeouts.timeout(timeout): 325s ~~~~~~~~~~~~~~~~^^^^^^^^^ 325s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 325s raise RuntimeError("Timeout should be used inside a task") 325s RuntimeError: Timeout should be used inside a task 325s WARNING NotebookApp:handlers.py:612 Unhandled error 325s ERROR NotebookApp:log.py:55 { 325s "Host": "localhost:12341", 325s "Accept": "*/*", 325s "User-Agent": "python-requests/2.32.5" 325s } 325s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/edca129e-07c0-45c4-a03d-56d1fca35df5 (::1) 3.610000ms referer=None 325s --------------------------- Captured stderr teardown --------------------------- 325s Traceback (most recent call last): 325s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 325s return _run_code(code, main_globals, None, 325s "__main__", mod_spec) 325s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 325s exec(code, run_globals) 325s ~~~~^^^^^^^^^^^^^^^^^^^ 325s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 325s from pathlib import Path 325s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 325s from pathlib._os import ( 325s ...<3 lines>... 325s ) 325s File "/usr/lib/python3.14/pathlib/_os.py", line 450, in 325s class _PosixPathInfo(_PathInfoBase): 325s ...<30 lines>... 325s return S_ISLNK(st.st_mode) 325s KeyboardInterrupt 325s ---------------------------- Captured log teardown ----------------------------- 325s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45da84a9-cda4-4a9a-959a-385d7fac9866 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: dce7f6af-6d09-411c-bb82-f421cc857da4 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 72b9a21f-69c6-4564-acb6-fd02b55fa6bd 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: c1c48700-5006-4e67-aede-f1f6ebffa498 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 76904b94-7572-415f-ae28-fad70f81e76d 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 88715aeb-cbf7-4443-812c-7669ba6a446b 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8e2a1fd3-090b-4a42-82bc-3848311927f5 325s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 66cd9bfa-8357-452b-ba39-f55ee0c46488 325s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 325s =============================== warnings summary =============================== 325s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 325s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 325s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 325s return LooseVersion(v) >= LooseVersion(check) 325s 325s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 325s services/kernels/tests/test_kernels_api.py: 65 warnings 325s services/sessions/tests/test_sessions_api.py: 106 warnings 325s /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). 325s dt = unaware(*args, **kwargs) 325s 325s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 325s /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 325s pytestmark = pytest.mark.integration_tests 325s 325s services/kernels/tests/test_kernels_api.py: 6 warnings 325s services/sessions/tests/test_sessions_api.py: 6 warnings 325s /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 325s policy = events.get_event_loop_policy() 325s 325s services/kernels/tests/test_kernels_api.py: 24 warnings 325s services/sessions/tests/test_sessions_api.py: 19 warnings 325s /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 325s loop = events.get_event_loop_policy().get_event_loop() 325s 325s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 325s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 325s loop.make_current() 325s 325s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 325s =========================== short test summary info ============================ 325s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 325s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 325s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 325s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 325s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 325s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 325s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 325s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 325s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 325s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 325s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 325s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 325s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 325s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 325s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 325s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 325s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_type 325s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 325s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 325s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 325s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 325s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 325s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 325s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 325s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_type 325s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 325s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 325s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 325s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 325s ===== 25 failed, 2 passed, 303 deselected, 231 warnings, 4 errors in 3.36s ===== 326s *** END OF RUN 2: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 326s *** 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 327s ============================= test session starts ============================== 327s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 327s rootdir: /tmp/autopkgtest.vwY63z/autopkgtest_tmp 327s plugins: typeguard-4.4.4 327s collected 330 items / 305 deselected / 25 selected 327s run-last-failure: rerun previous 25 failures 327s 328s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 36%] 329s services/sessions/tests/test_sessions_api.py FFFFFEFF.FFFFFEFF. [100%] 329s 329s ==================================== ERRORS ==================================== 329s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 329s 329s self = 329s 329s def tearDown(self): 329s for k in self.kern_api.list().json(): 329s > self.kern_api.shutdown(k['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/58fcbf72-edaa-4e5a-825a-51e07a724ca5 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ----------------------------- Captured stderr call ----------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 329s from pathlib import Path 329s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 329s from glob import _StringGlobber, _no_recurse_symlinks 329s File "/usr/lib/python3.14/glob.py", line 5, in 329s import re 329s File "/usr/lib/python3.14/re/__init__.py", line 126, in 329s from . import _compiler, _parser 329s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 329s from . import _parser 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 329s import jupyter_client 329s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 329s from .asynchronous import AsyncKernelClient 329s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 329s from .client import AsyncKernelClient # noqa 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 329s import zmq.asyncio 329s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 329s import asyncio 329s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 329s from .base_events import * 329s File "/usr/lib/python3.14/asyncio/base_events.py", line 38, in 329s from . import constants 329s File "", line 1371, in _find_and_load 329s File "", line 1310, in _find_and_load_unlocked 329s KeyboardInterrupt 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyhevhrm/runtime/kernel-58fcbf72-edaa-4e5a-825a-51e07a724ca5.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48005 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35669 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 58fcbf72-edaa-4e5a-825a-51e07a724ca5, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.970000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyhevhrm/runtime/kernel-68cd5b0a-4637-4405-8bdd-aad12f9ac0d7.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51199 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55227 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 68cd5b0a-4637-4405-8bdd-aad12f9ac0d7, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.360000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 68cd5b0a-4637-4405-8bdd-aad12f9ac0d7 329s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/68cd5b0a-4637-4405-8bdd-aad12f9ac0d7/interrupt (::1) 2.310000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 329s yield maybe_future(km.restart_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 329s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 329s await ensure_async(kernel.restart_kernel(now=now)) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 329s await self._async_shutdown_kernel(now=now, restart=True) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/68cd5b0a-4637-4405-8bdd-aad12f9ac0d7/restart (::1) 4.870000ms referer=None 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58fcbf72-edaa-4e5a-825a-51e07a724ca5 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58fcbf72-edaa-4e5a-825a-51e07a724ca5 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/58fcbf72-edaa-4e5a-825a-51e07a724ca5 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/58fcbf72-edaa-4e5a-825a-51e07a724ca5', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 329s yielded = ctx_run(next, result) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/58fcbf72-edaa-4e5a-825a-51e07a724ca5 (::1) 3.580000ms referer=None 329s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 329s 329s self = 329s 329s def tearDown(self): 329s for k in self.kern_api.list().json(): 329s > self.kern_api.shutdown(k['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/99244ca0-22e1-4c9c-b464-2468202296c9 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ----------------------------- Captured stderr call ----------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 329s from pathlib import Path 329s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 329s from glob import _StringGlobber, _no_recurse_symlinks 329s File "/usr/lib/python3.14/glob.py", line 5, in 329s import re 329s File "/usr/lib/python3.14/re/__init__.py", line 126, in 329s from . import _compiler, _parser 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 753, in exec_module 329s KeyboardInterrupt 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdqdm4eif/runtime/kernel-99244ca0-22e1-4c9c-b464-2468202296c9.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43499 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41297 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 99244ca0-22e1-4c9c-b464-2468202296c9, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.000000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.190000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdqdm4eif/runtime/kernel-9c180305-a1ca-45dd-98a2-ab0b3236b111.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56463 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34333 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9c180305-a1ca-45dd-98a2-ab0b3236b111, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.600000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 9c180305-a1ca-45dd-98a2-ab0b3236b111 329s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/9c180305-a1ca-45dd-98a2-ab0b3236b111/interrupt (::1) 0.460000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 329s yield maybe_future(km.restart_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 329s result = coro.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 329s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 329s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 329s yield self # This tells Task to wait for completion. 329s ^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 329s await ensure_async(kernel.restart_kernel(now=now)) 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 329s await self._async_shutdown_kernel(now=now, restart=True) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/9c180305-a1ca-45dd-98a2-ab0b3236b111/restart (::1) 3.970000ms referer=None 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99244ca0-22e1-4c9c-b464-2468202296c9 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99244ca0-22e1-4c9c-b464-2468202296c9 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/99244ca0-22e1-4c9c-b464-2468202296c9 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/99244ca0-22e1-4c9c-b464-2468202296c9', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/99244ca0-22e1-4c9c-b464-2468202296c9 (::1) 3.450000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 329s import jupyter_client 329s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 329s from .asynchronous import AsyncKernelClient 329s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 329s from .client import AsyncKernelClient # noqa 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 329s import zmq.asyncio 329s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 329s import asyncio 329s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 329s from .base_events import * 329s File "/usr/lib/python3.14/asyncio/base_events.py", line 18, in 329s import concurrent.futures 329s File "/usr/lib/python3.14/concurrent/futures/__init__.py", line 8, in 329s from concurrent.futures._base import (FIRST_COMPLETED, 329s ...<9 lines>... 329s as_completed) 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 7, in 329s import logging 329s File "/usr/lib/python3.14/logging/__init__.py", line 26, in 329s import sys, os, time, io, re, traceback, warnings, weakref, collections.abc 329s File "/usr/lib/python3.14/traceback.py", line 12, in 329s import _colorize 329s File "/usr/lib/python3.14/_colorize.py", line 157, in 329s @dataclass(frozen=True, kw_only=True) 329s ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/dataclasses.py", line 1432, in wrap 329s return _process_class(cls, init, repr, eq, order, unsafe_hash, 329s frozen, match_args, kw_only, slots, 329s weakref_slot) 329s File "/usr/lib/python3.14/dataclasses.py", line 1215, in _process_class 329s func_builder.add_fns_to_class(cls) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^ 329s File "/usr/lib/python3.14/dataclasses.py", line 510, in add_fns_to_class 329s for name, fn in zip(self.names, fns): 329s ~~~^^^^^^^^^^^^^^^^^ 329s KeyboardInterrupt 329s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwa9ycvaq/runtime/kernel-e15a2f05-cb9c-4083-9167-1674b1a19990.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44919 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56603 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: e15a2f05-cb9c-4083-9167-1674b1a19990, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.120000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.470000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6aea4a7d-64df-43ed-bb81-44934531a8f9 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6aea4a7d-64df-43ed-bb81-44934531a8f9 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4cffdd19-d748-4b4f-9066-8f7559edbde8 (::1) 1.360000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e15a2f05-cb9c-4083-9167-1674b1a19990 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e15a2f05-cb9c-4083-9167-1674b1a19990 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 329s yielded = self.gen.send(value) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 3.900000ms referer=None 329s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu4l2amrd/runtime/kernel-45e3b1e6-6a2c-42fd-9314-d84581b1faf6.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60039 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53357 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 45e3b1e6-6a2c-42fd-9314-d84581b1faf6, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.790000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.070000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.860000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.490000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ebfe245-e3b8-4fe0-ad89-1df25a5f60de 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ebfe245-e3b8-4fe0-ad89-1df25a5f60de 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8e62c0ac-d77e-4fa0-846a-e2c1377c84cb (::1) 1.470000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45e3b1e6-6a2c-42fd-9314-d84581b1faf6 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45e3b1e6-6a2c-42fd-9314-d84581b1faf6 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s =================================== FAILURES =================================== 329s ______________________ KernelAPITest.test_default_kernel _______________________ 329s 329s self = 329s 329s def tearDown(self): 329s for k in self.kern_api.list().json(): 329s > self.kern_api.shutdown(k['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/93f22340-c89a-4e63-a18a-031bacf1c12b 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log setup ------------------------------ 329s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpvyhevhrm/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpvyhevhrm/etc/jupyter'] for config files 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvyhevhrm/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvyhevhrm/config 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvyhevhrm/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvyhevhrm/config 329s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpvyhevhrm/notebooks 329s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 329s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 329s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 329s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 329s WARNING NotebookApp:handlers.py:612 Forbidden 329s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.570000ms referer=None 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyhevhrm/runtime/kernel-93f22340-c89a-4e63-a18a-031bacf1c12b.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33193 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42821 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 93f22340-c89a-4e63-a18a-031bacf1c12b, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.400000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.390000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93f22340-c89a-4e63-a18a-031bacf1c12b 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93f22340-c89a-4e63-a18a-031bacf1c12b 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/93f22340-c89a-4e63-a18a-031bacf1c12b (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/93f22340-c89a-4e63-a18a-031bacf1c12b', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 329s yielded = ctx_run(next, result) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 329s import json 329s File "/usr/lib/python3.14/json/__init__.py", line 107, in 329s from .encoder import JSONEncoder 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s ______________________ KernelAPITest.test_kernel_handler _______________________ 329s 329s self = 329s 329s def test_kernel_handler(self): 329s # GET kernel with given id 329s kid = self.kern_api.start().json()['id'] 329s r = self.kern_api.get(kid) 329s kern1 = r.json() 329s self.assertEqual(r.status_code, 200) 329s assert isinstance(kern1, dict) 329s self.assertIn('id', kern1) 329s self.assertEqual(kern1['id'], kid) 329s 329s # Request a bad kernel id and check that a JSON 329s # message is returned! 329s bad_id = '111-111-111-111-111' 329s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 329s self.kern_api.get(bad_id) 329s 329s # DELETE kernel with id 329s > r = self.kern_api.shutdown(kid) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/3a90c218-06a4-48fb-9119-0e7dc4ab66ed 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyhevhrm/runtime/kernel-3a90c218-06a4-48fb-9119-0e7dc4ab66ed.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44355 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52375 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3a90c218-06a4-48fb-9119-0e7dc4ab66ed, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.190000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/3a90c218-06a4-48fb-9119-0e7dc4ab66ed (::1) 0.390000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s 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 329s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 329s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.380000ms referer=None 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a90c218-06a4-48fb-9119-0e7dc4ab66ed 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a90c218-06a4-48fb-9119-0e7dc4ab66ed 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/3a90c218-06a4-48fb-9119-0e7dc4ab66ed (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/3a90c218-06a4-48fb-9119-0e7dc4ab66ed', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 329s yielded = ctx_run(next, result) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/3a90c218-06a4-48fb-9119-0e7dc4ab66ed (::1) 4.070000ms referer=None 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 93f22340-c89a-4e63-a18a-031bacf1c12b 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 93f22340-c89a-4e63-a18a-031bacf1c12b 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/93f22340-c89a-4e63-a18a-031bacf1c12b (::1) 1.230000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3a90c218-06a4-48fb-9119-0e7dc4ab66ed 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3a90c218-06a4-48fb-9119-0e7dc4ab66ed 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/3a90c218-06a4-48fb-9119-0e7dc4ab66ed (::1) 0.510000ms 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 329s from subprocess import PIPE, Popen 329s File "/usr/lib/python3.14/subprocess.py", line 46, in 329s import locale 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 329s 329s self = 329s 329s def test_main_kernel_handler(self): 329s # POST request 329s r = self.kern_api.start() 329s kern1 = r.json() 329s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 329s self.assertEqual(r.status_code, 201) 329s self.assertIsInstance(kern1, dict) 329s 329s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 329s expected_csp = '; '.join([ 329s "frame-ancestors 'self'", 329s 'report-uri ' + report_uri, 329s "default-src 'none'" 329s ]) 329s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 329s 329s # GET request 329s r = self.kern_api.list() 329s self.assertEqual(r.status_code, 200) 329s assert isinstance(r.json(), list) 329s self.assertEqual(r.json()[0]['id'], kern1['id']) 329s self.assertEqual(r.json()[0]['name'], kern1['name']) 329s 329s # create another kernel and check that they both are added to the 329s # list of kernels from a GET request 329s kern2 = self.kern_api.start().json() 329s assert isinstance(kern2, dict) 329s r = self.kern_api.list() 329s kernels = r.json() 329s self.assertEqual(r.status_code, 200) 329s assert isinstance(kernels, list) 329s self.assertEqual(len(kernels), 2) 329s 329s # Interrupt a kernel 329s r = self.kern_api.interrupt(kern2['id']) 329s self.assertEqual(r.status_code, 204) 329s 329s # Restart a kernel 329s > r = self.kern_api.restart(kern2['id']) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 329s return self._req('POST', url_path_join(id, 'restart')) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/68cd5b0a-4637-4405-8bdd-aad12f9ac0d7/restart 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ----------------------------- Captured stderr call ----------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 329s from pathlib import Path 329s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 329s from glob import _StringGlobber, _no_recurse_symlinks 329s File "/usr/lib/python3.14/glob.py", line 5, in 329s import re 329s File "/usr/lib/python3.14/re/__init__.py", line 126, in 329s from . import _compiler, _parser 329s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 329s from . import _parser 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 329s import jupyter_client 329s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 329s from .asynchronous import AsyncKernelClient 329s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 329s from .client import AsyncKernelClient # noqa 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 329s import zmq.asyncio 329s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 329s import asyncio 329s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 329s from .base_events import * 329s File "/usr/lib/python3.14/asyncio/base_events.py", line 38, in 329s from . import constants 329s File "", line 1371, in _find_and_load 329s File "", line 1310, in _find_and_load_unlocked 329s KeyboardInterrupt 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyhevhrm/runtime/kernel-58fcbf72-edaa-4e5a-825a-51e07a724ca5.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48005 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35669 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 58fcbf72-edaa-4e5a-825a-51e07a724ca5, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.970000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvyhevhrm/runtime/kernel-68cd5b0a-4637-4405-8bdd-aad12f9ac0d7.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51199 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55227 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 68cd5b0a-4637-4405-8bdd-aad12f9ac0d7, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.360000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 68cd5b0a-4637-4405-8bdd-aad12f9ac0d7 329s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/68cd5b0a-4637-4405-8bdd-aad12f9ac0d7/interrupt (::1) 2.310000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 329s yield maybe_future(km.restart_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 329s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 329s await ensure_async(kernel.restart_kernel(now=now)) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 329s await self._async_shutdown_kernel(now=now, restart=True) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/68cd5b0a-4637-4405-8bdd-aad12f9ac0d7/restart (::1) 4.870000ms referer=None 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58fcbf72-edaa-4e5a-825a-51e07a724ca5 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58fcbf72-edaa-4e5a-825a-51e07a724ca5 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/58fcbf72-edaa-4e5a-825a-51e07a724ca5 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/58fcbf72-edaa-4e5a-825a-51e07a724ca5', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 329s yielded = ctx_run(next, result) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/58fcbf72-edaa-4e5a-825a-51e07a724ca5 (::1) 3.580000ms referer=None 329s ________________________ KernelAPITest.test_no_kernels _________________________ 329s 329s self = 329s 329s def test_no_kernels(self): 329s """Make sure there are no kernels running at the start""" 329s kernels = self.kern_api.list().json() 329s > self.assertEqual(kernels, []) 329s E AssertionError: Lists differ: [{'id': '58fcbf72-edaa-4e5a-825a-51e07a724[281 chars]: 0}] != [] 329s E 329s E First list contains 2 additional elements. 329s E First extra element 0: 329s E {'id': '58fcbf72-edaa-4e5a-825a-51e07a724ca5', 'name': 'python3', 'last_activity': '2026-01-23T02:45:06.587082Z', 'execution_state': 'starting', 'connections': 0} 329s E 329s E + [] 329s E - [{'connections': 0, 329s E - 'execution_state': 'starting', 329s E - 'id': '58fcbf72-edaa-4e5a-825a-51e07a724ca5', 329s E - 'last_activity': '2026-01-23T02:45:06.587082Z', 329s E - 'name': 'python3'}, 329s E - {'connections': 0, 329s E - 'execution_state': 'starting', 329s E - 'id': '68cd5b0a-4637-4405-8bdd-aad12f9ac0d7', 329s E - 'last_activity': '2026-01-23T02:45:06.604101Z', 329s E - 'name': 'python3'}] 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.500000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.210000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 58fcbf72-edaa-4e5a-825a-51e07a724ca5 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 58fcbf72-edaa-4e5a-825a-51e07a724ca5 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/58fcbf72-edaa-4e5a-825a-51e07a724ca5 (::1) 0.460000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 68cd5b0a-4637-4405-8bdd-aad12f9ac0d7 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 68cd5b0a-4637-4405-8bdd-aad12f9ac0d7 329s ---------------------------- Captured log teardown ----------------------------- 329s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 329s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 329s _____________________ AsyncKernelAPITest.test_connections ______________________ 329s 329s self = 329s 329s def tearDown(self): 329s for k in self.kern_api.list().json(): 329s > self.kern_api.shutdown(k['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log setup ------------------------------ 329s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpdqdm4eif/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpdqdm4eif/etc/jupyter'] for config files 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpdqdm4eif/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpdqdm4eif/config 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpdqdm4eif/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpdqdm4eif/config 329s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpdqdm4eif/notebooks 329s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 329s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 329s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 329s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 329s WARNING NotebookApp:handlers.py:612 Forbidden 329s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.330000ms referer=None 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdqdm4eif/runtime/kernel-6b5953d8-9bc8-40c6-97c2-116d6ea770d6.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48507 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56635 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6b5953d8-9bc8-40c6-97c2-116d6ea770d6, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.050000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 (::1) 1.180000ms 329s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6/channels 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 329s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44409 329s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 329s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel 6b5953d8-9bc8-40c6-97c2-116d6ea770d6) to 5.4 (client). 329s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6/channels (::1) 398.050000ms 329s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6/channels 329s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56635 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44409 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48507 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48723 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44409 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48507 329s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 329s Setting websocket_ping_timeout=30000 329s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 (::1) 0.460000ms 329s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 (::1) 0.410000ms 329s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:handlers.py:579 Websocket closed 6b5953d8-9bc8-40c6-97c2-116d6ea770d6:a459499b-89ccc577faedae3c5bdfadf6 329s INFO NotebookApp:kernelmanager.py:222 Starting buffering for 6b5953d8-9bc8-40c6-97c2-116d6ea770d6:a459499b-89ccc577faedae3c5bdfadf6 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6b5953d8-9bc8-40c6-97c2-116d6ea770d6:iopub 329s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6b5953d8-9bc8-40c6-97c2-116d6ea770d6:iopub 329s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on 6b5953d8-9bc8-40c6-97c2-116d6ea770d6:iopub 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 (::1) 0.580000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 (::1) 0.370000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.320000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for 6b5953d8-9bc8-40c6-97c2-116d6ea770d6:a459499b-89ccc577faedae3c5bdfadf6 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 (::1) 3.780000ms referer=None 329s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 329s 329s self = 329s 329s def tearDown(self): 329s for k in self.kern_api.list().json(): 329s > self.kern_api.shutdown(k['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0413922c-f989-4b64-ac74-5c75c76f77e0 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdqdm4eif/runtime/kernel-0413922c-f989-4b64-ac74-5c75c76f77e0.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48015 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56375 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0413922c-f989-4b64-ac74-5c75c76f77e0, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.620000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/6b5953d8-9bc8-40c6-97c2-116d6ea770d6 (::1) 0.520000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0413922c-f989-4b64-ac74-5c75c76f77e0 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0413922c-f989-4b64-ac74-5c75c76f77e0 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0413922c-f989-4b64-ac74-5c75c76f77e0 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0413922c-f989-4b64-ac74-5c75c76f77e0', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0413922c-f989-4b64-ac74-5c75c76f77e0 (::1) 7.970000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 329s from pathlib import Path 329s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 329s from pathlib._os import ( 329s ...<3 lines>... 329s ) 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 329s 329s self = 329s 329s def test_kernel_handler(self): 329s # GET kernel with given id 329s kid = self.kern_api.start().json()['id'] 329s r = self.kern_api.get(kid) 329s kern1 = r.json() 329s self.assertEqual(r.status_code, 200) 329s assert isinstance(kern1, dict) 329s self.assertIn('id', kern1) 329s self.assertEqual(kern1['id'], kid) 329s 329s # Request a bad kernel id and check that a JSON 329s # message is returned! 329s bad_id = '111-111-111-111-111' 329s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 329s self.kern_api.get(bad_id) 329s 329s # DELETE kernel with id 329s > r = self.kern_api.shutdown(kid) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/2b631a7d-8a2c-47ab-9611-f1ad5fe119ae 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdqdm4eif/runtime/kernel-2b631a7d-8a2c-47ab-9611-f1ad5fe119ae.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38907 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38373 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 2b631a7d-8a2c-47ab-9611-f1ad5fe119ae, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.350000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/2b631a7d-8a2c-47ab-9611-f1ad5fe119ae (::1) 4.360000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s 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 329s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 329s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 1.260000ms referer=None 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b631a7d-8a2c-47ab-9611-f1ad5fe119ae 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b631a7d-8a2c-47ab-9611-f1ad5fe119ae 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/2b631a7d-8a2c-47ab-9611-f1ad5fe119ae (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/2b631a7d-8a2c-47ab-9611-f1ad5fe119ae', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/2b631a7d-8a2c-47ab-9611-f1ad5fe119ae (::1) 7.840000ms referer=None 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0413922c-f989-4b64-ac74-5c75c76f77e0 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0413922c-f989-4b64-ac74-5c75c76f77e0 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0413922c-f989-4b64-ac74-5c75c76f77e0 (::1) 0.490000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 2b631a7d-8a2c-47ab-9611-f1ad5fe119ae 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b631a7d-8a2c-47ab-9611-f1ad5fe119ae 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/2b631a7d-8a2c-47ab-9611-f1ad5fe119ae (::1) 0.410000ms 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 329s from pathlib import Path 329s File "/usr/lib/python3.14/pathlib/__init__.py", line 24, in 329s import grp 329s File "", line 1371, in _find_and_load 329s File "", line 1333, in _find_and_load_unlocked 329s File "", line 1267, in _find_spec 329s File "", line 988, in find_spec 329s File "", line 684, in spec_from_loader 329s File "", line 508, in _requires_builtin_wrapper 329s File "", line 1017, in is_package 329s KeyboardInterrupt 329s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 329s 329s self = 329s 329s def test_main_kernel_handler(self): 329s # POST request 329s r = self.kern_api.start() 329s kern1 = r.json() 329s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 329s self.assertEqual(r.status_code, 201) 329s self.assertIsInstance(kern1, dict) 329s 329s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 329s expected_csp = '; '.join([ 329s "frame-ancestors 'self'", 329s 'report-uri ' + report_uri, 329s "default-src 'none'" 329s ]) 329s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 329s 329s # GET request 329s r = self.kern_api.list() 329s self.assertEqual(r.status_code, 200) 329s assert isinstance(r.json(), list) 329s self.assertEqual(r.json()[0]['id'], kern1['id']) 329s self.assertEqual(r.json()[0]['name'], kern1['name']) 329s 329s # create another kernel and check that they both are added to the 329s # list of kernels from a GET request 329s kern2 = self.kern_api.start().json() 329s assert isinstance(kern2, dict) 329s r = self.kern_api.list() 329s kernels = r.json() 329s self.assertEqual(r.status_code, 200) 329s assert isinstance(kernels, list) 329s self.assertEqual(len(kernels), 2) 329s 329s # Interrupt a kernel 329s r = self.kern_api.interrupt(kern2['id']) 329s self.assertEqual(r.status_code, 204) 329s 329s # Restart a kernel 329s > r = self.kern_api.restart(kern2['id']) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 329s return self._req('POST', url_path_join(id, 'restart')) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/9c180305-a1ca-45dd-98a2-ab0b3236b111/restart 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ----------------------------- Captured stderr call ----------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 329s from pathlib import Path 329s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 329s from glob import _StringGlobber, _no_recurse_symlinks 329s File "/usr/lib/python3.14/glob.py", line 5, in 329s import re 329s File "/usr/lib/python3.14/re/__init__.py", line 126, in 329s from . import _compiler, _parser 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 753, in exec_module 329s KeyboardInterrupt 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdqdm4eif/runtime/kernel-99244ca0-22e1-4c9c-b464-2468202296c9.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43499 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41297 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 99244ca0-22e1-4c9c-b464-2468202296c9, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.000000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.190000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpdqdm4eif/runtime/kernel-9c180305-a1ca-45dd-98a2-ab0b3236b111.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56463 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34333 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9c180305-a1ca-45dd-98a2-ab0b3236b111, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.600000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 9c180305-a1ca-45dd-98a2-ab0b3236b111 329s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/9c180305-a1ca-45dd-98a2-ab0b3236b111/interrupt (::1) 0.460000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 329s yield maybe_future(km.restart_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 329s result = coro.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 329s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 329s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 329s yield self # This tells Task to wait for completion. 329s ^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 329s await ensure_async(kernel.restart_kernel(now=now)) 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 329s await self._async_shutdown_kernel(now=now, restart=True) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/9c180305-a1ca-45dd-98a2-ab0b3236b111/restart (::1) 3.970000ms referer=None 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99244ca0-22e1-4c9c-b464-2468202296c9 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99244ca0-22e1-4c9c-b464-2468202296c9 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/99244ca0-22e1-4c9c-b464-2468202296c9 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/99244ca0-22e1-4c9c-b464-2468202296c9', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 329s yield maybe_future(km.shutdown_kernel(kernel_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/99244ca0-22e1-4c9c-b464-2468202296c9 (::1) 3.450000ms referer=None 329s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 329s 329s self = 329s 329s def test_no_kernels(self): 329s """Make sure there are no kernels running at the start""" 329s kernels = self.kern_api.list().json() 329s > self.assertEqual(kernels, []) 329s E AssertionError: Lists differ: [{'id': '99244ca0-22e1-4c9c-b464-246820229[281 chars]: 0}] != [] 329s E 329s E First list contains 2 additional elements. 329s E First extra element 0: 329s E {'id': '99244ca0-22e1-4c9c-b464-2468202296c9', 'name': 'python3', 'last_activity': '2026-01-23T02:45:07.369234Z', 'execution_state': 'starting', 'connections': 0} 329s E 329s E + [] 329s E - [{'connections': 0, 329s E - 'execution_state': 'starting', 329s E - 'id': '99244ca0-22e1-4c9c-b464-2468202296c9', 329s E - 'last_activity': '2026-01-23T02:45:07.369234Z', 329s E - 'name': 'python3'}, 329s E - {'connections': 0, 329s E - 'execution_state': 'starting', 329s E - 'id': '9c180305-a1ca-45dd-98a2-ab0b3236b111', 329s E - 'last_activity': '2026-01-23T02:45:07.385522Z', 329s E - 'name': 'python3'}] 329s 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.580000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.340000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 99244ca0-22e1-4c9c-b464-2468202296c9 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99244ca0-22e1-4c9c-b464-2468202296c9 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/99244ca0-22e1-4c9c-b464-2468202296c9 (::1) 0.450000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9c180305-a1ca-45dd-98a2-ab0b3236b111 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9c180305-a1ca-45dd-98a2-ab0b3236b111 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9c180305-a1ca-45dd-98a2-ab0b3236b111 (::1) 0.460000ms 329s ---------------------------- Captured log teardown ----------------------------- 329s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 99244ca0-22e1-4c9c-b464-2468202296c9 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6b5953d8-9bc8-40c6-97c2-116d6ea770d6 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0413922c-f989-4b64-ac74-5c75c76f77e0 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 2b631a7d-8a2c-47ab-9611-f1ad5fe119ae 329s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 329s __________________________ SessionAPITest.test_create __________________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/2aefbb6a-8ff0-425b-a814-96e9bd62aecb 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log setup ------------------------------ 329s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpwa9ycvaq/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpwa9ycvaq/etc/jupyter'] for config files 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwa9ycvaq/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpwa9ycvaq/config 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwa9ycvaq/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpwa9ycvaq/config 329s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpwa9ycvaq/notebooks 329s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 329s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 329s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 329s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 329s WARNING NotebookApp:handlers.py:612 Forbidden 329s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.370000ms referer=None 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.750000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwa9ycvaq/runtime/kernel-337cb776-9664-45dc-be76-558c2953097e.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49743 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46937 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 337cb776-9664-45dc-be76-558c2953097e, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwa9ycvaq/notebooks/foo'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.800000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/2aefbb6a-8ff0-425b-a814-96e9bd62aecb (::1) 0.430000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 337cb776-9664-45dc-be76-558c2953097e 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 337cb776-9664-45dc-be76-558c2953097e 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/2aefbb6a-8ff0-425b-a814-96e9bd62aecb (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/2aefbb6a-8ff0-425b-a814-96e9bd62aecb', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 329s yielded = self.gen.send(value) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/2aefbb6a-8ff0-425b-a814-96e9bd62aecb (::1) 4.160000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 329s import json 329s File "/usr/lib/python3.14/json/__init__.py", line 106, in 329s from .decoder import JSONDecoder, JSONDecodeError 329s File "/usr/lib/python3.14/json/decoder.py", line 133, in 329s WHITESPACE = re.compile(r'[ \t\n\r]*', FLAGS) 329s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 329s return _compile(pattern, flags) 329s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 329s p = _compiler.compile(pattern, flags) 329s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 329s p = _parser.parse(p, flags) 329s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 329s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 329s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 329s itemsappend(_parse(source, state, verbose, nested + 1, 329s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s not nested and not items)) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/re/_parser.py", line 637, in _parse 329s subpatternappend((IN, set)) 329s ~~~~~~~~~~~~~~~~^^^^^^^^^^^ 329s KeyboardInterrupt 329s __________________ SessionAPITest.test_create_console_session __________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/32e451da-1515-45e9-bd7f-ba3c5aa956f3 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwa9ycvaq/runtime/kernel-36b86d9a-2025-4a86-8b5d-3c05c1396716.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41077 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41799 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 36b86d9a-2025-4a86-8b5d-3c05c1396716, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwa9ycvaq/notebooks/foo'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.430000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.260000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 337cb776-9664-45dc-be76-558c2953097e 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 337cb776-9664-45dc-be76-558c2953097e 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/2aefbb6a-8ff0-425b-a814-96e9bd62aecb (::1) 0.610000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 36b86d9a-2025-4a86-8b5d-3c05c1396716 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36b86d9a-2025-4a86-8b5d-3c05c1396716 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/32e451da-1515-45e9-bd7f-ba3c5aa956f3 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/32e451da-1515-45e9-bd7f-ba3c5aa956f3', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 329s yielded = self.gen.send(value) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 329s import json 329s File "/usr/lib/python3.14/json/__init__.py", line 106, in 329s from .decoder import JSONDecoder, JSONDecodeError 329s File "", line 1371, in _find_and_load 329s File "", line 1333, in _find_and_load_unlocked 329s File "", line 1261, in _find_spec 329s KeyboardInterrupt 329s ____________________ SessionAPITest.test_create_deprecated _____________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/da409928-a48a-4d1c-a03b-d421bbe8176e 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwa9ycvaq/runtime/kernel-89d10de5-4e76-476a-9efe-5e7145466b40.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37765 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37141 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 89d10de5-4e76-476a-9efe-5e7145466b40, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwa9ycvaq/notebooks/foo'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.460000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.250000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 36b86d9a-2025-4a86-8b5d-3c05c1396716 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 36b86d9a-2025-4a86-8b5d-3c05c1396716 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/32e451da-1515-45e9-bd7f-ba3c5aa956f3 (::1) 0.500000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89d10de5-4e76-476a-9efe-5e7145466b40 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89d10de5-4e76-476a-9efe-5e7145466b40 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/da409928-a48a-4d1c-a03b-d421bbe8176e (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/da409928-a48a-4d1c-a03b-d421bbe8176e', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 329s yielded = self.gen.send(value) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 329s from ._version import ( 329s ...<4 lines>... 329s ) 329s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 13, in 329s parts: list[object] = [int(match[part]) for part in ["major", "minor", "patch"]] 329s ~~~^^^^^^^^^^^^^ 329s KeyboardInterrupt 329s ___________________ SessionAPITest.test_create_file_session ____________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4cffdd19-d748-4b4f-9066-8f7559edbde8 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwa9ycvaq/runtime/kernel-6aea4a7d-64df-43ed-bb81-44934531a8f9.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50903 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36021 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6aea4a7d-64df-43ed-bb81-44934531a8f9, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpwa9ycvaq/notebooks/foo'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.450000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.350000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 89d10de5-4e76-476a-9efe-5e7145466b40 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 89d10de5-4e76-476a-9efe-5e7145466b40 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/da409928-a48a-4d1c-a03b-d421bbe8176e (::1) 0.580000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6aea4a7d-64df-43ed-bb81-44934531a8f9 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6aea4a7d-64df-43ed-bb81-44934531a8f9 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4cffdd19-d748-4b4f-9066-8f7559edbde8 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4cffdd19-d748-4b4f-9066-8f7559edbde8', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 329s yielded = self.gen.send(value) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 329s from ._version import ( 329s ...<4 lines>... 329s ) 329s File "", line 472, in _lock_unlock_module 329s File "", line 429, in _get_module_lock 329s KeyboardInterrupt 329s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 329s 329s self = 329s 329s def test_create_with_kernel_id(self): 329s # create a new kernel 329s r = self.request('POST', 'api/kernels') 329s r.raise_for_status() 329s kernel = r.json() 329s 329s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 329s self.assertEqual(resp.status_code, 201) 329s newsession = resp.json() 329s self.assertIn('id', newsession) 329s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 329s self.assertEqual(newsession['kernel']['id'], kernel['id']) 329s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 329s 329s sessions = self.sess_api.list().json() 329s > self.assertEqual(sessions, [newsession]) 329s E AssertionError: Lists differ: [{'id': '4cffdd19-d748-4b4f-9066-8f7559edbde8', 'pa[552 chars]ne}}] != [{'id': '4d46f4ce-d5a8-4321-9878-454db0b79ca8', 'pa[278 chars]ne}}] 329s E 329s E First differing element 0: 329s E {'id': '4cffdd19-d748-4b4f-9066-8f7559edbde8', 'pa[217 chars]: 0}} 329s E {'id': '4d46f4ce-d5a8-4321-9878-454db0b79ca8', 'pa[277 chars]one}} 329s E 329s E First list contains 1 additional elements. 329s E First extra element 1: 329s E {'id': '4d46f4ce-d5a8-4321-9878-454db0b79ca8', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': 'e15a2f05-cb9c-4083-9167-1674b1a19990', 'name': 'python3', 'last_activity': '2026-01-23T02:45:07.673788Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 329s E 329s E Diff is 830 characters long. Set self.maxDiff to None to see it. 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwa9ycvaq/runtime/kernel-e15a2f05-cb9c-4083-9167-1674b1a19990.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44919 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56603 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: e15a2f05-cb9c-4083-9167-1674b1a19990, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.120000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.470000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6aea4a7d-64df-43ed-bb81-44934531a8f9 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6aea4a7d-64df-43ed-bb81-44934531a8f9 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4cffdd19-d748-4b4f-9066-8f7559edbde8 (::1) 1.360000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e15a2f05-cb9c-4083-9167-1674b1a19990 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e15a2f05-cb9c-4083-9167-1674b1a19990 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 329s yielded = self.gen.send(value) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 3.900000ms referer=None 329s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ---------------------------- Captured stderr setup ----------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 329s from subprocess import PIPE, Popen 329s File "/usr/lib/python3.14/subprocess.py", line 125, in 329s import selectors 329s File "/usr/lib/python3.14/selectors.py", line 11, in 329s import math 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 914, in _load_unlocked 329s KeyboardInterrupt 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.410000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwa9ycvaq/runtime/kernel-08407c38-e0f7-4ed3-99ff-765b3626a20d.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56063 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38093 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 08407c38-e0f7-4ed3-99ff-765b3626a20d, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.990000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e15a2f05-cb9c-4083-9167-1674b1a19990 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e15a2f05-cb9c-4083-9167-1674b1a19990 329s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 1.590000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.220000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 08407c38-e0f7-4ed3-99ff-765b3626a20d 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 08407c38-e0f7-4ed3-99ff-765b3626a20d 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 329s yielded = self.gen.send(value) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 4.090000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 329s from subprocess import PIPE, Popen 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.440000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpwa9ycvaq/runtime/kernel-96283ab0-2b2c-45f4-8767-61e27948007e.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60267 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34065 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 96283ab0-2b2c-45f4-8767-61e27948007e, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpwa9ycvaq/notebooks/foo'} 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 08407c38-e0f7-4ed3-99ff-765b3626a20d 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 08407c38-e0f7-4ed3-99ff-765b3626a20d 329s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 13.540000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.230000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 96283ab0-2b2c-45f4-8767-61e27948007e 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 96283ab0-2b2c-45f4-8767-61e27948007e 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 329s yielded = self.gen.send(value) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 329s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 329s stopper = ensure_async(km.shutdown_kernel(now, restart)) 329s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 329s return _runner_map[name].run(inner) 329s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 329s return fut.result(None) 329s ~~~~~~~~~~^^^^^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 329s return self.__get_result() 329s ~~~~~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 329s raise self._exception 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/4d46f4ce-d5a8-4321-9878-454db0b79ca8 (::1) 3.980000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 329s from ._version import ( 329s ...<4 lines>... 329s ) 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 924, in _load_unlocked 329s File "", line 822, in module_from_spec 329s File "", line 794, in _init_module_attrs 329s KeyboardInterrupt 329s _______________________ AsyncSessionAPITest.test_create ________________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/aaa25511-632b-4625-b3fe-33e4ac1f3653 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log setup ------------------------------ 329s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpu4l2amrd/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpu4l2amrd/etc/jupyter'] for config files 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpu4l2amrd/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpu4l2amrd/config 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpu4l2amrd/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 329s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpu4l2amrd/config 329s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpu4l2amrd/notebooks 329s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 329s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 329s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 329s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 329s WARNING NotebookApp:handlers.py:612 Forbidden 329s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.410000ms referer=None 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.640000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu4l2amrd/runtime/kernel-101b10ca-4a7b-45de-8c5c-e5fcbd2302ad.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45433 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53195 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 101b10ca-4a7b-45de-8c5c-e5fcbd2302ad, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu4l2amrd/notebooks/foo'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.510000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.800000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/aaa25511-632b-4625-b3fe-33e4ac1f3653 (::1) 1.310000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 101b10ca-4a7b-45de-8c5c-e5fcbd2302ad 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 101b10ca-4a7b-45de-8c5c-e5fcbd2302ad 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/aaa25511-632b-4625-b3fe-33e4ac1f3653 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/aaa25511-632b-4625-b3fe-33e4ac1f3653', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/aaa25511-632b-4625-b3fe-33e4ac1f3653 (::1) 4.420000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 329s from subprocess import PIPE, Popen 329s File "/usr/lib/python3.14/subprocess.py", line 49, in 329s import signal 329s File "/usr/lib/python3.14/signal.py", line 7, in 329s _IntEnum._convert_( 329s ~~~~~~~~~~~~~~~~~~^ 329s 'Signals', __name__, 329s ^^^^^^^^^^^^^^^^^^^^ 329s ...<2 lines>... 329s and (name.startswith('SIG') and not name.startswith('SIG_')) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s or name.startswith('CTRL_')) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 329s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 329s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 329s setattr(enum_class, name, member) 329s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 329s def __setattr__(cls, name, value): 329s 329s KeyboardInterrupt 329s _______________ AsyncSessionAPITest.test_create_console_session ________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/44a1baf5-63b0-4e9e-8f75-7724d77ddc9e 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu4l2amrd/runtime/kernel-85b5d938-6223-4f82-89b3-6b1b88a38a62.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39687 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56845 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 85b5d938-6223-4f82-89b3-6b1b88a38a62, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu4l2amrd/notebooks/foo'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.810000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.520000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 101b10ca-4a7b-45de-8c5c-e5fcbd2302ad 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 101b10ca-4a7b-45de-8c5c-e5fcbd2302ad 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/aaa25511-632b-4625-b3fe-33e4ac1f3653 (::1) 1.470000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85b5d938-6223-4f82-89b3-6b1b88a38a62 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85b5d938-6223-4f82-89b3-6b1b88a38a62 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/44a1baf5-63b0-4e9e-8f75-7724d77ddc9e (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/44a1baf5-63b0-4e9e-8f75-7724d77ddc9e', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/44a1baf5-63b0-4e9e-8f75-7724d77ddc9e (::1) 4.350000ms referer=None/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 329s gc.collect() 329s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 329s 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 329s from subprocess import PIPE, Popen 329s File "/usr/lib/python3.14/subprocess.py", line 49, in 329s import signal 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1d240b6e-15b1-4a7c-9c67-1ec4de472921 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu4l2amrd/runtime/kernel-47475c59-e6af-4db0-ab97-3febc6b16a99.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33463 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49715 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 47475c59-e6af-4db0-ab97-3febc6b16a99, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu4l2amrd/notebooks/foo'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.000000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.530000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 85b5d938-6223-4f82-89b3-6b1b88a38a62 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 85b5d938-6223-4f82-89b3-6b1b88a38a62 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/44a1baf5-63b0-4e9e-8f75-7724d77ddc9e (::1) 1.640000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 47475c59-e6af-4db0-ab97-3febc6b16a99 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 47475c59-e6af-4db0-ab97-3febc6b16a99 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1d240b6e-15b1-4a7c-9c67-1ec4de472921 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1d240b6e-15b1-4a7c-9c67-1ec4de472921', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/1d240b6e-15b1-4a7c-9c67-1ec4de472921 (::1) 4.250000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 329s from subprocess import PIPE, Popen 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s _________________ AsyncSessionAPITest.test_create_file_session _________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8e62c0ac-d77e-4fa0-846a-e2c1377c84cb 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu4l2amrd/runtime/kernel-8ebfe245-e3b8-4fe0-ad89-1df25a5f60de.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42665 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60027 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8ebfe245-e3b8-4fe0-ad89-1df25a5f60de, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpu4l2amrd/notebooks/foo'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.230000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.150000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 47475c59-e6af-4db0-ab97-3febc6b16a99 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 47475c59-e6af-4db0-ab97-3febc6b16a99 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1d240b6e-15b1-4a7c-9c67-1ec4de472921 (::1) 1.600000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ebfe245-e3b8-4fe0-ad89-1df25a5f60de 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ebfe245-e3b8-4fe0-ad89-1df25a5f60de 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8e62c0ac-d77e-4fa0-846a-e2c1377c84cb (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8e62c0ac-d77e-4fa0-846a-e2c1377c84cb', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8e62c0ac-d77e-4fa0-846a-e2c1377c84cb (::1) 4.420000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 329s from subprocess import PIPE, Popen 329s File "/usr/lib/python3.14/subprocess.py", line 46, in 329s import locale 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 511, in _compile_bytecode 329s KeyboardInterrupt 329s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 329s 329s self = 329s 329s def test_create_with_kernel_id(self): 329s # create a new kernel 329s r = self.request('POST', 'api/kernels') 329s r.raise_for_status() 329s kernel = r.json() 329s 329s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 329s self.assertEqual(resp.status_code, 201) 329s newsession = resp.json() 329s self.assertIn('id', newsession) 329s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 329s self.assertEqual(newsession['kernel']['id'], kernel['id']) 329s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 329s 329s sessions = self.sess_api.list().json() 329s > self.assertEqual(sessions, [newsession]) 329s E AssertionError: Lists differ: [{'id': '8e62c0ac-d77e-4fa0-846a-e2c1377c84cb', 'p[553 chars]ne}}] != [{'id': '7bd657ec-e4c2-442a-8b0f-1d719f9f14e5', 'p[279 chars]ne}}] 329s E 329s E First differing element 0: 329s E {'id': '8e62c0ac-d77e-4fa0-846a-e2c1377c84cb', 'p[218 chars]: 0}} 329s E {'id': '7bd657ec-e4c2-442a-8b0f-1d719f9f14e5', 'p[278 chars]one}} 329s E 329s E First list contains 1 additional elements. 329s E First extra element 1: 329s E {'id': '7bd657ec-e4c2-442a-8b0f-1d719f9f14e5', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '45e3b1e6-6a2c-42fd-9314-d84581b1faf6', 'name': 'python3', 'last_activity': '2026-01-23T02:45:08.088045Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 329s E 329s E Diff is 830 characters long. Set self.maxDiff to None to see it. 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu4l2amrd/runtime/kernel-45e3b1e6-6a2c-42fd-9314-d84581b1faf6.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60039 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53357 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 45e3b1e6-6a2c-42fd-9314-d84581b1faf6, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.790000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.070000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.860000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.490000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8ebfe245-e3b8-4fe0-ad89-1df25a5f60de 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8ebfe245-e3b8-4fe0-ad89-1df25a5f60de 329s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8e62c0ac-d77e-4fa0-846a-e2c1377c84cb (::1) 1.470000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45e3b1e6-6a2c-42fd-9314-d84581b1faf6 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45e3b1e6-6a2c-42fd-9314-d84581b1faf6 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ---------------------------- Captured stderr setup ----------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 329s from typing import TYPE_CHECKING, Any 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 888, in get_code 329s File "", line 513, in _compile_bytecode 329s File "", line 494, in _verbose_message 329s KeyboardInterrupt 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.700000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu4l2amrd/runtime/kernel-6810dfe2-4362-4a29-9bce-8ed728dec121.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33079 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50399 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6810dfe2-4362-4a29-9bce-8ed728dec121, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.470000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 45e3b1e6-6a2c-42fd-9314-d84581b1faf6 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 45e3b1e6-6a2c-42fd-9314-d84581b1faf6 329s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 (::1) 1.930000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.390000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6810dfe2-4362-4a29-9bce-8ed728dec121 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6810dfe2-4362-4a29-9bce-8ed728dec121 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 (::1) 4.280000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 329s from .connect import * # noqa: F403 329s ^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 329s import json 329s File "", line 1371, in _find_and_load 329s File "", line 1342, in _find_and_load_unlocked 329s File "", line 938, in _load_unlocked 329s File "", line 755, in exec_module 329s File "", line 851, in get_code 329s File "", line 950, in get_data 329s KeyboardInterrupt 329s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 329s 329s @self.addCleanup 329s def cleanup_sessions(): 329s for session in self.sess_api.list().json(): 329s > self.sess_api.delete(session['id']) 329s 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 329s return self._req('DELETE', id) 329s ^^^^^^^^^^^^^^^^^^^^^^^ 329s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 329s response.raise_for_status() 329s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 329s 329s self = 329s 329s def raise_for_status(self): 329s """Raises :class:`HTTPError`, if one occurred.""" 329s 329s http_error_msg = "" 329s if isinstance(self.reason, bytes): 329s # We attempt to decode utf-8 first because some servers 329s # choose to localize their reason strings. If the string 329s # isn't utf-8, we fall back to iso-8859-1 for all other 329s # encodings. (See PR #3538) 329s try: 329s reason = self.reason.decode("utf-8") 329s except UnicodeDecodeError: 329s reason = self.reason.decode("iso-8859-1") 329s else: 329s reason = self.reason 329s 329s if 400 <= self.status_code < 500: 329s http_error_msg = ( 329s f"{self.status_code} Client Error: {reason} for url: {self.url}" 329s ) 329s 329s elif 500 <= self.status_code < 600: 329s http_error_msg = ( 329s f"{self.status_code} Server Error: {reason} for url: {self.url}" 329s ) 329s 329s if http_error_msg: 329s > raise HTTPError(http_error_msg, response=self) 329s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 329s 329s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 329s ------------------------------ Captured log call ------------------------------- 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.550000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 329s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpu4l2amrd/runtime/kernel-83ae3274-43e8-46d6-9b77-24d8269ea5c1.json'] 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38847 329s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48057 329s INFO NotebookApp:kernelmanager.py:179 Kernel started: 83ae3274-43e8-46d6-9b77-24d8269ea5c1, name: python3 329s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpu4l2amrd/notebooks/foo'} 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6810dfe2-4362-4a29-9bce-8ed728dec121 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6810dfe2-4362-4a29-9bce-8ed728dec121 329s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 (::1) 13.310000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.050000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.680000ms 329s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 329s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 83ae3274-43e8-46d6-9b77-24d8269ea5c1 329s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 83ae3274-43e8-46d6-9b77-24d8269ea5c1 329s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 (::1) 329s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5', version='HTTP/1.1', remote_ip='::1') 329s Traceback (most recent call last): 329s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 329s result = await result 329s ^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 329s future.result() 329s ~~~~~~~~~~~~~^^ 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 329s yield maybe_future(sm.delete_session(session_id)) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 329s yielded = self.gen.throw(exc) 329s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 329s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 329s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 329s value = future.result() 329s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 329s raise self._exception.with_traceback(self._exception_tb) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 329s result = coro.send(None) 329s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 329s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 329s raise km.ready.exception() # type: ignore[misc] 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 329s await kernel_awaitable 329s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 329s result = await obj 329s ^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 329s raise e 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 329s out = await method(self, *args, **kwargs) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 329s await self._async_finish_shutdown(restart=restart) 329s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 329s await asyncio.wait_for( 329s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 329s ) 329s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 329s async with timeouts.timeout(timeout): 329s ~~~~~~~~~~~~~~~~^^^^^^^^^ 329s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 329s raise RuntimeError("Timeout should be used inside a task") 329s RuntimeError: Timeout should be used inside a task 329s WARNING NotebookApp:handlers.py:612 Unhandled error 329s ERROR NotebookApp:log.py:55 { 329s "Host": "localhost:12341", 329s "Accept": "*/*", 329s "User-Agent": "python-requests/2.32.5" 329s } 329s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7bd657ec-e4c2-442a-8b0f-1d719f9f14e5 (::1) 3.780000ms referer=None 329s --------------------------- Captured stderr teardown --------------------------- 329s Traceback (most recent call last): 329s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 329s return _run_code(code, main_globals, None, 329s "__main__", mod_spec) 329s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 329s exec(code, run_globals) 329s ~~~~^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 329s from ipykernel import kernelapp as app 329s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 329s from ._version import ( 329s ...<4 lines>... 329s ) 329s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 329s match = re.match(pattern, __version__) 329s File "/usr/lib/python3.14/re/__init__.py", line 167, in match 329s return _compile(pattern, flags).match(string) 329s ~~~~~~~~^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 329s p = _compiler.compile(pattern, flags) 329s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 329s p = _parser.parse(p, flags) 329s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 329s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 329s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 329s itemsappend(_parse(source, state, verbose, nested + 1, 329s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s not nested and not items)) 329s ^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/re/_parser.py", line 866, in _parse 329s subpatternappend((SUBPATTERN, (group, add_flags, del_flags, p))) 329s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 329s File "/usr/lib/python3.14/re/_parser.py", line 176, in append 329s def append(self, code): 329s 329s KeyboardInterrupt 329s =============================== warnings summary =============================== 329s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 329s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 329s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 329s return LooseVersion(v) >= LooseVersion(check) 329s 329s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 329s services/kernels/tests/test_kernels_api.py: 66 warnings 329s services/sessions/tests/test_sessions_api.py: 96 warnings 329s /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). 329s dt = unaware(*args, **kwargs) 329s 329s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 329s /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 329s pytestmark = pytest.mark.integration_tests 329s 329s services/kernels/tests/test_kernels_api.py: 6 warnings 329s services/sessions/tests/test_sessions_api.py: 6 warnings 329s /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 329s policy = events.get_event_loop_policy() 329s 329s services/kernels/tests/test_kernels_api.py: 24 warnings 329s services/sessions/tests/test_sessions_api.py: 19 warnings 329s /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 329s loop = events.get_event_loop_policy().get_event_loop() 329s 329s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 329s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 329s loop.make_current() 329s 329s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 329s =========================== short test summary info ============================ 329s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 329s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 329s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 329s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 329s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 329s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 329s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 329s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 329s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 329s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 329s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 329s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 329s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 329s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 329s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 329s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 329s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 329s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 329s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 329s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 329s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 329s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 329s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 329s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 329s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 329s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 329s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 329s ===== 23 failed, 2 passed, 305 deselected, 222 warnings, 4 errors in 3.37s ===== 330s *** END OF RUN 3: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 330s *** 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 331s ============================= test session starts ============================== 331s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 331s rootdir: /tmp/autopkgtest.vwY63z/autopkgtest_tmp 331s plugins: typeguard-4.4.4 331s collected 330 items / 307 deselected / 23 selected 331s run-last-failure: rerun previous 23 failures 331s 332s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 333s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 333s 333s ==================================== ERRORS ==================================== 333s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 333s 333s self = 333s 333s def tearDown(self): 333s for k in self.kern_api.list().json(): 333s > self.kern_api.shutdown(k['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ----------------------------- Captured stderr call ----------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 333s from pathlib import Path 333s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 333s from pathlib._os import ( 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 851, in get_code 333s File "", line 950, in get_data 333s KeyboardInterrupt 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 333s import jupyter_client 333s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 333s from .asynchronous import AsyncKernelClient 333s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 333s from .client import AsyncKernelClient # noqa 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 333s import zmq.asyncio 333s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 333s import asyncio 333s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 333s from .base_events import * 333s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 333s import ssl 333s File "/usr/lib/python3.14/ssl.py", line 100, in 333s import _ssl # if we can't import it, let the error propagate 333s ^^^^^^^^^^^ 333s KeyboardInterrupt 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpszcwxkvk/runtime/kernel-9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36383 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47519 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.600000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpszcwxkvk/runtime/kernel-8780cd64-1339-4432-9041-0d62a7853492.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37241 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60913 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8780cd64-1339-4432-9041-0d62a7853492, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.270000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 8780cd64-1339-4432-9041-0d62a7853492 333s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/8780cd64-1339-4432-9041-0d62a7853492/interrupt (::1) 1.510000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 333s yield maybe_future(km.restart_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 333s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 333s await ensure_async(kernel.restart_kernel(now=now)) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 333s await self._async_shutdown_kernel(now=now, restart=True) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/8780cd64-1339-4432-9041-0d62a7853492/restart (::1) 4.750000ms referer=None 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 333s yielded = ctx_run(next, result) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee (::1) 4.280000ms referer=None 333s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 333s 333s self = 333s 333s def tearDown(self): 333s for k in self.kern_api.list().json(): 333s > self.kern_api.shutdown(k['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/718f5c70-3e1f-42d8-9d4d-37a947c2464a 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ----------------------------- Captured stderr call ----------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 333s from pathlib import Path 333s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 333s from glob import _StringGlobber, _no_recurse_symlinks 333s File "/usr/lib/python3.14/glob.py", line 3, in 333s import contextlib 333s File "/usr/lib/python3.14/contextlib.py", line 6, in 333s from collections import deque 333s File "/usr/lib/python3.14/collections/__init__.py", line 1360, in 333s class UserString(_collections_abc.Sequence): 333s File "/usr/lib/python3.14/abc.py", line 105, in __new__ 333s def __new__(mcls, name, bases, namespace, /, **kwargs): 333s KeyboardInterrupt 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 333s import jupyter_client 333s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 333s from .asynchronous import AsyncKernelClient 333s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 333s from .client import AsyncKernelClient # noqa 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 333s import zmq.asyncio 333s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 333s import asyncio 333s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 333s from .base_events import * 333s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 333s import ssl 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 888, in get_code 333s File "", line 511, in _compile_bytecode 333s KeyboardInterrupt 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvzkeebq2/runtime/kernel-718f5c70-3e1f-42d8-9d4d-37a947c2464a.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52487 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42299 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 718f5c70-3e1f-42d8-9d4d-37a947c2464a, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.250000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvzkeebq2/runtime/kernel-a8c6c63a-80a2-4c4d-827b-77ff38b262db.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52333 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33957 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: a8c6c63a-80a2-4c4d-827b-77ff38b262db, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.520000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a8c6c63a-80a2-4c4d-827b-77ff38b262db 333s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a8c6c63a-80a2-4c4d-827b-77ff38b262db/interrupt (::1) 3.270000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 333s yield maybe_future(km.restart_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 333s result = coro.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 333s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 333s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 333s yield self # This tells Task to wait for completion. 333s ^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 333s await ensure_async(kernel.restart_kernel(now=now)) 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 333s await self._async_shutdown_kernel(now=now, restart=True) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a8c6c63a-80a2-4c4d-827b-77ff38b262db/restart (::1) 4.320000ms referer=None 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 718f5c70-3e1f-42d8-9d4d-37a947c2464a 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 718f5c70-3e1f-42d8-9d4d-37a947c2464a 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/718f5c70-3e1f-42d8-9d4d-37a947c2464a (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/718f5c70-3e1f-42d8-9d4d-37a947c2464a', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/718f5c70-3e1f-42d8-9d4d-37a947c2464a (::1) 3.740000ms referer=None 333s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0krmt5p/runtime/kernel-0f099fd2-5bd2-44ab-9516-9ba03e7a6c05.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50813 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43445 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0f099fd2-5bd2-44ab-9516-9ba03e7a6c05, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.090000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.370000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.100000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94bc9a0a-92cb-45e6-84b7-1b8b935950ca 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94bc9a0a-92cb-45e6-84b7-1b8b935950ca 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8e65c1f1-e6b5-478c-8da9-14e63d53e367 (::1) 1.450000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f099fd2-5bd2-44ab-9516-9ba03e7a6c05 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f099fd2-5bd2-44ab-9516-9ba03e7a6c05 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 333s yielded = self.gen.send(value) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 4.240000ms referer=None 333s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpemccetfw/runtime/kernel-6e5955ac-f69e-4829-823f-77964eea5536.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57817 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50689 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6e5955ac-f69e-4829-823f-77964eea5536, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.040000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.710000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71cf9033-427b-4209-b39a-a08f25716e49 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71cf9033-427b-4209-b39a-a08f25716e49 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/63f233b2-3035-44c1-b868-e6de85535244 (::1) 0.460000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e5955ac-f69e-4829-823f-77964eea5536 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e5955ac-f69e-4829-823f-77964eea5536 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 3.810000ms referer=None 333s =================================== FAILURES =================================== 333s ______________________ KernelAPITest.test_default_kernel _______________________ 333s 333s self = 333s 333s def tearDown(self): 333s for k in self.kern_api.list().json(): 333s > self.kern_api.shutdown(k['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a08ae113-b33c-4e40-adf2-2b394d5cf745 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log setup ------------------------------ 333s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpszcwxkvk/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpszcwxkvk/etc/jupyter'] for config files 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpszcwxkvk/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpszcwxkvk/config 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpszcwxkvk/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpszcwxkvk/config 333s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpszcwxkvk/notebooks 333s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 333s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 333s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 333s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 333s WARNING NotebookApp:handlers.py:612 Forbidden 333s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.570000ms referer=None 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpszcwxkvk/runtime/kernel-a08ae113-b33c-4e40-adf2-2b394d5cf745.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49669 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58551 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: a08ae113-b33c-4e40-adf2-2b394d5cf745, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.090000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a08ae113-b33c-4e40-adf2-2b394d5cf745 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a08ae113-b33c-4e40-adf2-2b394d5cf745 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a08ae113-b33c-4e40-adf2-2b394d5cf745 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a08ae113-b33c-4e40-adf2-2b394d5cf745', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 333s yielded = ctx_run(next, result) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/a08ae113-b33c-4e40-adf2-2b394d5cf745 (::1) 5.380000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 333s from pathlib import Path 333s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 333s from glob import _StringGlobber, _no_recurse_symlinks 333s File "/usr/lib/python3.14/glob.py", line 5, in 333s import re 333s File "/usr/lib/python3.14/re/__init__.py", line 126, in 333s from . import _compiler, _parser 333s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 333s from . import _parser 333s File "", line 474, in _lock_unlock_module 333s File "", line 311, in acquire 333s File "", line 170, in __enter__ 333s File "", line 132, in setdefault 333s File "", line 74, in __new__ 333s KeyboardInterrupt 333s ______________________ KernelAPITest.test_kernel_handler _______________________ 333s 333s self = 333s 333s def test_kernel_handler(self): 333s # GET kernel with given id 333s kid = self.kern_api.start().json()['id'] 333s r = self.kern_api.get(kid) 333s kern1 = r.json() 333s self.assertEqual(r.status_code, 200) 333s assert isinstance(kern1, dict) 333s self.assertIn('id', kern1) 333s self.assertEqual(kern1['id'], kid) 333s 333s # Request a bad kernel id and check that a JSON 333s # message is returned! 333s bad_id = '111-111-111-111-111' 333s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 333s self.kern_api.get(bad_id) 333s 333s # DELETE kernel with id 333s > r = self.kern_api.shutdown(kid) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/53e62c13-4a6d-4938-b9e8-5162f0423bcc 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpszcwxkvk/runtime/kernel-53e62c13-4a6d-4938-b9e8-5162f0423bcc.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51533 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:32985 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 53e62c13-4a6d-4938-b9e8-5162f0423bcc, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.450000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/53e62c13-4a6d-4938-b9e8-5162f0423bcc (::1) 0.860000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s 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 333s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 333s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.580000ms referer=None 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53e62c13-4a6d-4938-b9e8-5162f0423bcc 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53e62c13-4a6d-4938-b9e8-5162f0423bcc 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/53e62c13-4a6d-4938-b9e8-5162f0423bcc (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/53e62c13-4a6d-4938-b9e8-5162f0423bcc', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 333s yielded = ctx_run(next, result) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/53e62c13-4a6d-4938-b9e8-5162f0423bcc (::1) 5.120000ms referer=None 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.500000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a08ae113-b33c-4e40-adf2-2b394d5cf745 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a08ae113-b33c-4e40-adf2-2b394d5cf745 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a08ae113-b33c-4e40-adf2-2b394d5cf745 (::1) 0.590000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 53e62c13-4a6d-4938-b9e8-5162f0423bcc 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 53e62c13-4a6d-4938-b9e8-5162f0423bcc 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 46, in 333s import locale 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 888, in get_code 333s File "", line 511, in _compile_bytecode 333s KeyboardInterrupt 333s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 333s 333s self = 333s 333s def test_main_kernel_handler(self): 333s # POST request 333s r = self.kern_api.start() 333s kern1 = r.json() 333s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 333s self.assertEqual(r.status_code, 201) 333s self.assertIsInstance(kern1, dict) 333s 333s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 333s expected_csp = '; '.join([ 333s "frame-ancestors 'self'", 333s 'report-uri ' + report_uri, 333s "default-src 'none'" 333s ]) 333s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 333s 333s # GET request 333s r = self.kern_api.list() 333s self.assertEqual(r.status_code, 200) 333s assert isinstance(r.json(), list) 333s self.assertEqual(r.json()[0]['id'], kern1['id']) 333s self.assertEqual(r.json()[0]['name'], kern1['name']) 333s 333s # create another kernel and check that they both are added to the 333s # list of kernels from a GET request 333s kern2 = self.kern_api.start().json() 333s assert isinstance(kern2, dict) 333s r = self.kern_api.list() 333s kernels = r.json() 333s self.assertEqual(r.status_code, 200) 333s assert isinstance(kernels, list) 333s self.assertEqual(len(kernels), 2) 333s 333s # Interrupt a kernel 333s r = self.kern_api.interrupt(kern2['id']) 333s self.assertEqual(r.status_code, 204) 333s 333s # Restart a kernel 333s > r = self.kern_api.restart(kern2['id']) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 333s return self._req('POST', url_path_join(id, 'restart')) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/8780cd64-1339-4432-9041-0d62a7853492/restart 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ----------------------------- Captured stderr call ----------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 333s from pathlib import Path 333s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 333s from pathlib._os import ( 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 851, in get_code 333s File "", line 950, in get_data 333s KeyboardInterrupt 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 333s import jupyter_client 333s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 333s from .asynchronous import AsyncKernelClient 333s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 333s from .client import AsyncKernelClient # noqa 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 333s import zmq.asyncio 333s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 333s import asyncio 333s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 333s from .base_events import * 333s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 333s import ssl 333s File "/usr/lib/python3.14/ssl.py", line 100, in 333s import _ssl # if we can't import it, let the error propagate 333s ^^^^^^^^^^^ 333s KeyboardInterrupt 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpszcwxkvk/runtime/kernel-9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36383 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47519 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.600000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.440000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpszcwxkvk/runtime/kernel-8780cd64-1339-4432-9041-0d62a7853492.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:37241 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60913 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8780cd64-1339-4432-9041-0d62a7853492, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.270000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: 8780cd64-1339-4432-9041-0d62a7853492 333s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/8780cd64-1339-4432-9041-0d62a7853492/interrupt (::1) 1.510000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 333s yield maybe_future(km.restart_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 333s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 333s await ensure_async(kernel.restart_kernel(now=now)) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 333s await self._async_shutdown_kernel(now=now, restart=True) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/8780cd64-1339-4432-9041-0d62a7853492/restart (::1) 4.750000ms referer=None 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 333s yielded = ctx_run(next, result) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee (::1) 4.280000ms referer=None 333s ________________________ KernelAPITest.test_no_kernels _________________________ 333s 333s self = 333s 333s def test_no_kernels(self): 333s """Make sure there are no kernels running at the start""" 333s kernels = self.kern_api.list().json() 333s > self.assertEqual(kernels, []) 333s E AssertionError: Lists differ: [{'id': '9fd2d48a-f9ac-49e2-86f7-29dd9962a[281 chars]: 0}] != [] 333s E 333s E First list contains 2 additional elements. 333s E First extra element 0: 333s E {'id': '9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee', 'name': 'python3', 'last_activity': '2026-01-23T02:45:10.675556Z', 'execution_state': 'starting', 'connections': 0} 333s E 333s E + [] 333s E - [{'connections': 0, 333s E - 'execution_state': 'starting', 333s E - 'id': '9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee', 333s E - 'last_activity': '2026-01-23T02:45:10.675556Z', 333s E - 'name': 'python3'}, 333s E - {'connections': 0, 333s E - 'execution_state': 'starting', 333s E - 'id': '8780cd64-1339-4432-9041-0d62a7853492', 333s E - 'last_activity': '2026-01-23T02:45:10.694008Z', 333s E - 'name': 'python3'}] 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.110000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9fd2d48a-f9ac-49e2-86f7-29dd9962a1ee (::1) 0.530000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8780cd64-1339-4432-9041-0d62a7853492 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8780cd64-1339-4432-9041-0d62a7853492 333s ---------------------------- Captured log teardown ----------------------------- 333s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 333s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 333s _____________________ AsyncKernelAPITest.test_connections ______________________ 333s 333s self = 333s 333s def tearDown(self): 333s for k in self.kern_api.list().json(): 333s > self.kern_api.shutdown(k['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log setup ------------------------------ 333s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpvzkeebq2/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpvzkeebq2/etc/jupyter'] for config files 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvzkeebq2/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpvzkeebq2/config 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvzkeebq2/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpvzkeebq2/config 333s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpvzkeebq2/notebooks 333s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 333s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 333s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 333s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 333s WARNING NotebookApp:handlers.py:612 Forbidden 333s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.330000ms referer=None 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvzkeebq2/runtime/kernel-fe8a9ee0-c524-4c7d-b99b-ecd7d1621962.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47469 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39331 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.120000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 (::1) 1.260000ms 333s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962/channels 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 333s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59415 333s DEBUG NotebookApp:kernelmanager.py:423 activity on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962: status (starting) 333s DEBUG NotebookApp:kernelmanager.py:423 activity on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962: status (busy) 333s DEBUG NotebookApp:kernelmanager.py:423 activity on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962: status (idle) 333s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 333s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel fe8a9ee0-c524-4c7d-b99b-ecd7d1621962) to 5.4 (client). 333s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962/channels (::1) 398.800000ms 333s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962/channels 333s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39331 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59415 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47469 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36143 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:59415 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47469 333s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 333s Setting websocket_ping_timeout=30000 333s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 (::1) 1.820000ms 333s DEBUG NotebookApp:kernelmanager.py:423 activity on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962: status (busy) 333s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:handlers.py:197 Nudge: resolving shell future: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:kernelmanager.py:423 activity on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962: status (busy) 333s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:kernelmanager.py:423 activity on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962: status (idle) 333s DEBUG NotebookApp:kernelmanager.py:423 activity on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962: status (idle) 333s DEBUG NotebookApp:handlers.py:579 Websocket closed fe8a9ee0-c524-4c7d-b99b-ecd7d1621962:57078ccb-ced3b2628ad8ff2a823a8265 333s INFO NotebookApp:kernelmanager.py:222 Starting buffering for fe8a9ee0-c524-4c7d-b99b-ecd7d1621962:57078ccb-ced3b2628ad8ff2a823a8265 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962:iopub 333s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962:iopub 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on fe8a9ee0-c524-4c7d-b99b-ecd7d1621962:iopub 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 (::1) 0.790000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 (::1) 0.400000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.410000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for fe8a9ee0-c524-4c7d-b99b-ecd7d1621962:57078ccb-ced3b2628ad8ff2a823a8265 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 (::1) 4.140000ms referer=None 333s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 333s 333s self = 333s 333s def tearDown(self): 333s for k in self.kern_api.list().json(): 333s > self.kern_api.shutdown(k['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvzkeebq2/runtime/kernel-62cd42a8-b26d-4400-9d37-bf4f57d3e2f9.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41193 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55307 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 62cd42a8-b26d-4400-9d37-bf4f57d3e2f9, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.740000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.540000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 (::1) 0.550000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/62cd42a8-b26d-4400-9d37-bf4f57d3e2f9', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 (::1) 8.220000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 52, in 333s import warnings 333s File "", line 1371, in _find_and_load 333s File "", line 1333, in _find_and_load_unlocked 333s File "", line 1267, in _find_spec 333s File "", line 1292, in find_spec 333s File "", line 1266, in _get_spec 333s File "", line 1398, in find_spec 333s File "", line 166, in _path_isfile 333s File "", line 158, in _path_is_mode_type 333s File "", line 152, in _path_stat 333s KeyboardInterrupt 333s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 333s 333s self = 333s 333s def test_kernel_handler(self): 333s # GET kernel with given id 333s kid = self.kern_api.start().json()['id'] 333s r = self.kern_api.get(kid) 333s kern1 = r.json() 333s self.assertEqual(r.status_code, 200) 333s assert isinstance(kern1, dict) 333s self.assertIn('id', kern1) 333s self.assertEqual(kern1['id'], kid) 333s 333s # Request a bad kernel id and check that a JSON 333s # message is returned! 333s bad_id = '111-111-111-111-111' 333s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 333s self.kern_api.get(bad_id) 333s 333s # DELETE kernel with id 333s > r = self.kern_api.shutdown(kid) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/10ca606d-9e93-4f87-aa35-fe0596490fa5 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvzkeebq2/runtime/kernel-10ca606d-9e93-4f87-aa35-fe0596490fa5.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36443 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58669 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 10ca606d-9e93-4f87-aa35-fe0596490fa5, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.080000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/10ca606d-9e93-4f87-aa35-fe0596490fa5 (::1) 1.570000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s 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 333s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 333s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 3.630000ms referer=None 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 10ca606d-9e93-4f87-aa35-fe0596490fa5 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10ca606d-9e93-4f87-aa35-fe0596490fa5 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/10ca606d-9e93-4f87-aa35-fe0596490fa5 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/10ca606d-9e93-4f87-aa35-fe0596490fa5', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/10ca606d-9e93-4f87-aa35-fe0596490fa5 (::1) 8.110000ms referer=None 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 2.980000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 (::1) 0.470000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 10ca606d-9e93-4f87-aa35-fe0596490fa5 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10ca606d-9e93-4f87-aa35-fe0596490fa5 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 333s from pathlib import Path 333s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 333s from glob import _StringGlobber, _no_recurse_symlinks 333s File "/usr/lib/python3.14/glob.py", line 5, in 333s import re 333s File "/usr/lib/python3.14/re/__init__.py", line 126, in 333s from . import _compiler, _parser 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 888, in get_code 333s File "", line 511, in _compile_bytecode 333s KeyboardInterrupt 333s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 333s 333s self = 333s 333s def test_main_kernel_handler(self): 333s # POST request 333s r = self.kern_api.start() 333s kern1 = r.json() 333s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 333s self.assertEqual(r.status_code, 201) 333s self.assertIsInstance(kern1, dict) 333s 333s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 333s expected_csp = '; '.join([ 333s "frame-ancestors 'self'", 333s 'report-uri ' + report_uri, 333s "default-src 'none'" 333s ]) 333s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 333s 333s # GET request 333s r = self.kern_api.list() 333s self.assertEqual(r.status_code, 200) 333s assert isinstance(r.json(), list) 333s self.assertEqual(r.json()[0]['id'], kern1['id']) 333s self.assertEqual(r.json()[0]['name'], kern1['name']) 333s 333s # create another kernel and check that they both are added to the 333s # list of kernels from a GET request 333s kern2 = self.kern_api.start().json() 333s assert isinstance(kern2, dict) 333s r = self.kern_api.list() 333s kernels = r.json() 333s self.assertEqual(r.status_code, 200) 333s assert isinstance(kernels, list) 333s self.assertEqual(len(kernels), 2) 333s 333s # Interrupt a kernel 333s r = self.kern_api.interrupt(kern2['id']) 333s self.assertEqual(r.status_code, 204) 333s 333s # Restart a kernel 333s > r = self.kern_api.restart(kern2['id']) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 333s return self._req('POST', url_path_join(id, 'restart')) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/a8c6c63a-80a2-4c4d-827b-77ff38b262db/restart 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ----------------------------- Captured stderr call ----------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 333s from pathlib import Path 333s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 333s from glob import _StringGlobber, _no_recurse_symlinks 333s File "/usr/lib/python3.14/glob.py", line 3, in 333s import contextlib 333s File "/usr/lib/python3.14/contextlib.py", line 6, in 333s from collections import deque 333s File "/usr/lib/python3.14/collections/__init__.py", line 1360, in 333s class UserString(_collections_abc.Sequence): 333s File "/usr/lib/python3.14/abc.py", line 105, in __new__ 333s def __new__(mcls, name, bases, namespace, /, **kwargs): 333s KeyboardInterrupt 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 333s import jupyter_client 333s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 333s from .asynchronous import AsyncKernelClient 333s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 333s from .client import AsyncKernelClient # noqa 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 333s import zmq.asyncio 333s File "/usr/lib/python3/dist-packages/zmq/asyncio.py", line 10, in 333s import asyncio 333s File "/usr/lib/python3.14/asyncio/__init__.py", line 8, in 333s from .base_events import * 333s File "/usr/lib/python3.14/asyncio/base_events.py", line 34, in 333s import ssl 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 888, in get_code 333s File "", line 511, in _compile_bytecode 333s KeyboardInterrupt 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvzkeebq2/runtime/kernel-718f5c70-3e1f-42d8-9d4d-37a947c2464a.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52487 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42299 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 718f5c70-3e1f-42d8-9d4d-37a947c2464a, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.250000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpvzkeebq2/runtime/kernel-a8c6c63a-80a2-4c4d-827b-77ff38b262db.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52333 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33957 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: a8c6c63a-80a2-4c4d-827b-77ff38b262db, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.240000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.520000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: a8c6c63a-80a2-4c4d-827b-77ff38b262db 333s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/a8c6c63a-80a2-4c4d-827b-77ff38b262db/interrupt (::1) 3.270000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 333s yield maybe_future(km.restart_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 333s result = coro.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 333s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 333s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 333s yield self # This tells Task to wait for completion. 333s ^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 333s await ensure_async(kernel.restart_kernel(now=now)) 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 333s await self._async_shutdown_kernel(now=now, restart=True) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/a8c6c63a-80a2-4c4d-827b-77ff38b262db/restart (::1) 4.320000ms referer=None 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.420000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 718f5c70-3e1f-42d8-9d4d-37a947c2464a 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 718f5c70-3e1f-42d8-9d4d-37a947c2464a 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/718f5c70-3e1f-42d8-9d4d-37a947c2464a (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/718f5c70-3e1f-42d8-9d4d-37a947c2464a', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 333s yield maybe_future(km.shutdown_kernel(kernel_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/718f5c70-3e1f-42d8-9d4d-37a947c2464a (::1) 3.740000ms referer=None 333s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 333s 333s self = 333s 333s def test_no_kernels(self): 333s """Make sure there are no kernels running at the start""" 333s kernels = self.kern_api.list().json() 333s > self.assertEqual(kernels, []) 333s E AssertionError: Lists differ: [{'id': '718f5c70-3e1f-42d8-9d4d-37a947c24[281 chars]: 0}] != [] 333s E 333s E First list contains 2 additional elements. 333s E First extra element 0: 333s E {'id': '718f5c70-3e1f-42d8-9d4d-37a947c2464a', 'name': 'python3', 'last_activity': '2026-01-23T02:45:11.385586Z', 'execution_state': 'starting', 'connections': 0} 333s E 333s E + [] 333s E - [{'connections': 0, 333s E - 'execution_state': 'starting', 333s E - 'id': '718f5c70-3e1f-42d8-9d4d-37a947c2464a', 333s E - 'last_activity': '2026-01-23T02:45:11.385586Z', 333s E - 'name': 'python3'}, 333s E - {'connections': 0, 333s E - 'execution_state': 'starting', 333s E - 'id': 'a8c6c63a-80a2-4c4d-827b-77ff38b262db', 333s E - 'last_activity': '2026-01-23T02:45:11.407038Z', 333s E - 'name': 'python3'}] 333s 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.530000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 718f5c70-3e1f-42d8-9d4d-37a947c2464a 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 718f5c70-3e1f-42d8-9d4d-37a947c2464a 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/718f5c70-3e1f-42d8-9d4d-37a947c2464a (::1) 0.460000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a8c6c63a-80a2-4c4d-827b-77ff38b262db 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a8c6c63a-80a2-4c4d-827b-77ff38b262db 333s ---------------------------- Captured log teardown ----------------------------- 333s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 718f5c70-3e1f-42d8-9d4d-37a947c2464a 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: fe8a9ee0-c524-4c7d-b99b-ecd7d1621962 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 10ca606d-9e93-4f87-aa35-fe0596490fa5 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 62cd42a8-b26d-4400-9d37-bf4f57d3e2f9 333s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 333s __________________________ SessionAPITest.test_create __________________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/27dbd929-713d-49ce-b91e-ee61fab97ed2 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log setup ------------------------------ 333s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpa0krmt5p/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpa0krmt5p/etc/jupyter'] for config files 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpa0krmt5p/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpa0krmt5p/config 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpa0krmt5p/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpa0krmt5p/config 333s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpa0krmt5p/notebooks 333s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 333s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 333s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 333s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 333s WARNING NotebookApp:handlers.py:612 Forbidden 333s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.590000ms referer=None 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0krmt5p/runtime/kernel-3bd5e2ee-e54d-4d2d-a013-c00b09876608.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36085 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47513 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 3bd5e2ee-e54d-4d2d-a013-c00b09876608, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpa0krmt5p/notebooks/foo'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.200000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.850000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/27dbd929-713d-49ce-b91e-ee61fab97ed2 (::1) 1.270000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.140000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3bd5e2ee-e54d-4d2d-a013-c00b09876608 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bd5e2ee-e54d-4d2d-a013-c00b09876608 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/27dbd929-713d-49ce-b91e-ee61fab97ed2 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/27dbd929-713d-49ce-b91e-ee61fab97ed2', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 333s yielded = self.gen.send(value) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/27dbd929-713d-49ce-b91e-ee61fab97ed2 (::1) 4.160000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 51, in 333s import threading 333s File "", line 1371, in _find_and_load 333s File "", line 1333, in _find_and_load_unlocked 333s File "", line 1267, in _find_spec 333s File "", line 1292, in find_spec 333s File "", line 1266, in _get_spec 333s File "", line 1365, in find_spec 333s File "", line 152, in _path_stat 333s KeyboardInterrupt 333s __________________ SessionAPITest.test_create_console_session __________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8ca2c009-354a-4d87-a2b6-3b23aad65078 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0krmt5p/runtime/kernel-d022768c-0140-42b4-a99d-19e4ce59a039.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39857 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45459 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: d022768c-0140-42b4-a99d-19e4ce59a039, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpa0krmt5p/notebooks/foo'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.370000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 3bd5e2ee-e54d-4d2d-a013-c00b09876608 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 3bd5e2ee-e54d-4d2d-a013-c00b09876608 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/27dbd929-713d-49ce-b91e-ee61fab97ed2 (::1) 0.610000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d022768c-0140-42b4-a99d-19e4ce59a039 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d022768c-0140-42b4-a99d-19e4ce59a039 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8ca2c009-354a-4d87-a2b6-3b23aad65078 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8ca2c009-354a-4d87-a2b6-3b23aad65078', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 333s yielded = self.gen.send(value) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8ca2c009-354a-4d87-a2b6-3b23aad65078 (::1) 3.900000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 49, in 333s import signal 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 851, in get_code 333s File "", line 950, in get_data 333s KeyboardInterrupt 333s ____________________ SessionAPITest.test_create_deprecated _____________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7e599bd6-9909-4d2d-88f0-472b19ac8406 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0krmt5p/runtime/kernel-31e74444-6087-437f-9bda-83a9b3ed6bb9.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49591 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47233 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 31e74444-6087-437f-9bda-83a9b3ed6bb9, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpa0krmt5p/notebooks/foo'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.410000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.770000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d022768c-0140-42b4-a99d-19e4ce59a039 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d022768c-0140-42b4-a99d-19e4ce59a039 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8ca2c009-354a-4d87-a2b6-3b23aad65078 (::1) 0.530000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31e74444-6087-437f-9bda-83a9b3ed6bb9 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31e74444-6087-437f-9bda-83a9b3ed6bb9 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7e599bd6-9909-4d2d-88f0-472b19ac8406 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7e599bd6-9909-4d2d-88f0-472b19ac8406', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 333s yielded = self.gen.send(value) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7e599bd6-9909-4d2d-88f0-472b19ac8406 (::1) 4.180000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 46, in 333s import locale 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 888, in get_code 333s File "", line 511, in _compile_bytecode 333s KeyboardInterrupt 333s ___________________ SessionAPITest.test_create_file_session ____________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/8e65c1f1-e6b5-478c-8da9-14e63d53e367 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0krmt5p/runtime/kernel-94bc9a0a-92cb-45e6-84b7-1b8b935950ca.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57413 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:56053 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 94bc9a0a-92cb-45e6-84b7-1b8b935950ca, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpa0krmt5p/notebooks/foo'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.580000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 31e74444-6087-437f-9bda-83a9b3ed6bb9 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 31e74444-6087-437f-9bda-83a9b3ed6bb9 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7e599bd6-9909-4d2d-88f0-472b19ac8406 (::1) 0.550000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94bc9a0a-92cb-45e6-84b7-1b8b935950ca 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94bc9a0a-92cb-45e6-84b7-1b8b935950ca 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/8e65c1f1-e6b5-478c-8da9-14e63d53e367 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/8e65c1f1-e6b5-478c-8da9-14e63d53e367', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 333s yielded = self.gen.send(value) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/8e65c1f1-e6b5-478c-8da9-14e63d53e367 (::1) 3.750000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 46, in 333s import locale 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 888, in get_code 333s File "", line 511, in _compile_bytecode 333s KeyboardInterrupt 333s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 333s 333s self = 333s 333s def test_create_with_kernel_id(self): 333s # create a new kernel 333s r = self.request('POST', 'api/kernels') 333s r.raise_for_status() 333s kernel = r.json() 333s 333s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 333s self.assertEqual(resp.status_code, 201) 333s newsession = resp.json() 333s self.assertIn('id', newsession) 333s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 333s self.assertEqual(newsession['kernel']['id'], kernel['id']) 333s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 333s 333s sessions = self.sess_api.list().json() 333s > self.assertEqual(sessions, [newsession]) 333s E AssertionError: Lists differ: [{'id': '8e65c1f1-e6b5-478c-8da9-14e63d53e367', 'p[553 chars]ne}}] != [{'id': 'e970a661-afd1-424a-b9e7-0df834e5b825', 'p[279 chars]ne}}] 333s E 333s E First differing element 0: 333s E {'id': '8e65c1f1-e6b5-478c-8da9-14e63d53e367', 'p[218 chars]: 0}} 333s E {'id': 'e970a661-afd1-424a-b9e7-0df834e5b825', 'p[278 chars]one}} 333s E 333s E First list contains 1 additional elements. 333s E First extra element 1: 333s E {'id': 'e970a661-afd1-424a-b9e7-0df834e5b825', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '0f099fd2-5bd2-44ab-9516-9ba03e7a6c05', 'name': 'python3', 'last_activity': '2026-01-23T02:45:11.695219Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 333s E 333s E Diff is 830 characters long. Set self.maxDiff to None to see it. 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0krmt5p/runtime/kernel-0f099fd2-5bd2-44ab-9516-9ba03e7a6c05.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50813 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43445 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0f099fd2-5bd2-44ab-9516-9ba03e7a6c05, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.090000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.370000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.100000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 94bc9a0a-92cb-45e6-84b7-1b8b935950ca 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 94bc9a0a-92cb-45e6-84b7-1b8b935950ca 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/8e65c1f1-e6b5-478c-8da9-14e63d53e367 (::1) 1.450000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f099fd2-5bd2-44ab-9516-9ba03e7a6c05 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f099fd2-5bd2-44ab-9516-9ba03e7a6c05 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 333s yielded = self.gen.send(value) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 4.240000ms referer=None 333s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ---------------------------- Captured stderr setup ----------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 333s from typing import TYPE_CHECKING, Any 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 888, in get_code 333s File "", line 511, in _compile_bytecode 333s KeyboardInterrupt 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.530000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0krmt5p/runtime/kernel-0891899b-705c-4b56-8653-c2feeb382718.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40489 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36743 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0891899b-705c-4b56-8653-c2feeb382718, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.200000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0f099fd2-5bd2-44ab-9516-9ba03e7a6c05 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0f099fd2-5bd2-44ab-9516-9ba03e7a6c05 333s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 0.830000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.150000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.400000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0891899b-705c-4b56-8653-c2feeb382718 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0891899b-705c-4b56-8653-c2feeb382718 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 333s yielded = self.gen.send(value) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 754, in 333s _USE_POSIX_SPAWN = _use_posix_spawn() 333s File "/usr/lib/python3.14/subprocess.py", line 714, in _use_posix_spawn 333s if _mswindows or not hasattr(os, 'posix_spawn'): 333s ~~~~~~~^^^^^^^^^^^^^^^^^^^ 333s KeyboardInterrupt 333s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.560000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpa0krmt5p/runtime/kernel-0a72dabf-06e1-4aea-803e-505fa0c6f6f3.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35185 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52087 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0a72dabf-06e1-4aea-803e-505fa0c6f6f3, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpa0krmt5p/notebooks/foo'} 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0891899b-705c-4b56-8653-c2feeb382718 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0891899b-705c-4b56-8653-c2feeb382718 333s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 14.730000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.370000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0a72dabf-06e1-4aea-803e-505fa0c6f6f3 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0a72dabf-06e1-4aea-803e-505fa0c6f6f3 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 333s yielded = self.gen.send(value) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 333s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 333s stopper = ensure_async(km.shutdown_kernel(now, restart)) 333s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 333s return _runner_map[name].run(inner) 333s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 333s return fut.result(None) 333s ~~~~~~~~~~^^^^^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 333s return self.__get_result() 333s ~~~~~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 333s raise self._exception 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/e970a661-afd1-424a-b9e7-0df834e5b825 (::1) 4.180000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 49, in 333s import signal 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 861, in get_code 333s KeyboardInterrupt 333s ---------------------------- Captured log teardown ----------------------------- 333s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0a72dabf-06e1-4aea-803e-505fa0c6f6f3 333s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 333s _______________________ AsyncSessionAPITest.test_create ________________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/366dc685-a050-43a4-9e32-06def9f856f7 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log setup ------------------------------ 333s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpemccetfw/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpemccetfw/etc/jupyter'] for config files 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpemccetfw/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpemccetfw/config 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpemccetfw/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 333s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpemccetfw/config 333s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpemccetfw/notebooks 333s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 333s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 333s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 333s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 333s WARNING NotebookApp:handlers.py:612 Forbidden 333s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.340000ms referer=None 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.550000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpemccetfw/runtime/kernel-1283eb7c-5c1e-4956-b117-c8a2888424d8.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48995 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48451 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1283eb7c-5c1e-4956-b117-c8a2888424d8, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpemccetfw/notebooks/foo'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.240000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/366dc685-a050-43a4-9e32-06def9f856f7 (::1) 1.080000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1283eb7c-5c1e-4956-b117-c8a2888424d8 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1283eb7c-5c1e-4956-b117-c8a2888424d8 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shu/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 333s gc.collect() 333s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 333s tdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/366dc685-a050-43a4-9e32-06def9f856f7 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/366dc685-a050-43a4-9e32-06def9f856f7', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/366dc685-a050-43a4-9e32-06def9f856f7 (::1) 3.730000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 333s import json 333s File "/usr/lib/python3.14/json/__init__.py", line 107, in 333s from .encoder import JSONEncoder 333s File "", line 472, in _lock_unlock_module 333s File "", line 435, in _get_module_lock 333s KeyboardInterrupt 333s _______________ AsyncSessionAPITest.test_create_console_session ________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a6e9e0be-5224-48c5-b06f-5b696c8c2aac 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpemccetfw/runtime/kernel-1793811a-9744-41db-bcf8-07ab16df749b.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48367 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:48865 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 1793811a-9744-41db-bcf8-07ab16df749b, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpemccetfw/notebooks/foo'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.040000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.220000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1283eb7c-5c1e-4956-b117-c8a2888424d8 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1283eb7c-5c1e-4956-b117-c8a2888424d8 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/366dc685-a050-43a4-9e32-06def9f856f7 (::1) 1.230000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1793811a-9744-41db-bcf8-07ab16df749b 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1793811a-9744-41db-bcf8-07ab16df749b 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a6e9e0be-5224-48c5-b06f-5b696c8c2aac (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a6e9e0be-5224-48c5-b06f-5b696c8c2aac', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 333s from __future__ import annotations 333s File "/usr/lib/python3.14/__future__.py", line 81, in 333s class _Feature: 333s ...<24 lines>... 333s self.compiler_flag)) 333s KeyboardInterrupt 333s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/21ff0256-1bbc-40e9-8ba5-2a71618a789d 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpemccetfw/runtime/kernel-6eb2bb19-80ab-413d-9f72-f69809c51bf8.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52613 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58889 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6eb2bb19-80ab-413d-9f72-f69809c51bf8, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpemccetfw/notebooks/foo'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.330000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.310000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 1793811a-9744-41db-bcf8-07ab16df749b 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1793811a-9744-41db-bcf8-07ab16df749b 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/a6e9e0be-5224-48c5-b06f-5b696c8c2aac (::1) 1.270000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6eb2bb19-80ab-413d-9f72-f69809c51bf8 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6eb2bb19-80ab-413d-9f72-f69809c51bf8 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/21ff0256-1bbc-40e9-8ba5-2a71618a789d (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/21ff0256-1bbc-40e9-8ba5-2a71618a789d', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/21ff0256-1bbc-40e9-8ba5-2a71618a789d (::1) 4.120000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 5, in 333s from __future__ import annotations 333s File "/usr/lib/python3.14/__future__.py", line 81, in 333s class _Feature: 333s ...<24 lines>... 333s self.compiler_flag)) 333s File "/usr/lib/python3.14/__future__.py", line 81, in _Feature 333s class _Feature: 333s 333s KeyboardInterrupt 333s _________________ AsyncSessionAPITest.test_create_file_session _________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/63f233b2-3035-44c1-b868-e6de85535244 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpemccetfw/runtime/kernel-71cf9033-427b-4209-b39a-a08f25716e49.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60299 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51523 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 71cf9033-427b-4209-b39a-a08f25716e49, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpemccetfw/notebooks/foo'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.350000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.510000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6eb2bb19-80ab-413d-9f72-f69809c51bf8 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6eb2bb19-80ab-413d-9f72-f69809c51bf8 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/21ff0256-1bbc-40e9-8ba5-2a71618a789d (::1) 0.490000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71cf9033-427b-4209-b39a-a08f25716e49 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71cf9033-427b-4209-b39a-a08f25716e49 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/63f233b2-3035-44c1-b868-e6de85535244 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/63f233b2-3035-44c1-b868-e6de85535244', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/63f233b2-3035-44c1-b868-e6de85535244 (::1) 3.750000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 333s import json 333s File "/usr/lib/python3.14/json/__init__.py", line 106, in 333s from .decoder import JSONDecoder, JSONDecodeError 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 851, in get_code 333s File "", line 950, in get_data 333s KeyboardInterrupt 333s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 333s 333s self = 333s 333s def test_create_with_kernel_id(self): 333s # create a new kernel 333s r = self.request('POST', 'api/kernels') 333s r.raise_for_status() 333s kernel = r.json() 333s 333s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 333s self.assertEqual(resp.status_code, 201) 333s newsession = resp.json() 333s self.assertIn('id', newsession) 333s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 333s self.assertEqual(newsession['kernel']['id'], kernel['id']) 333s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 333s 333s sessions = self.sess_api.list().json() 333s > self.assertEqual(sessions, [newsession]) 333s E AssertionError: Lists differ: [{'id': '63f233b2-3035-44c1-b868-e6de85535244', 'p[553 chars]ne}}] != [{'id': 'a4bf9026-b181-4aef-b6c3-58b6281f3b11', 'p[279 chars]ne}}] 333s E 333s E First differing element 0: 333s E {'id': '63f233b2-3035-44c1-b868-e6de85535244', 'p[218 chars]: 0}} 333s E {'id': 'a4bf9026-b181-4aef-b6c3-58b6281f3b11', 'p[278 chars]one}} 333s E 333s E First list contains 1 additional elements. 333s E First extra element 1: 333s E {'id': 'a4bf9026-b181-4aef-b6c3-58b6281f3b11', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '6e5955ac-f69e-4829-823f-77964eea5536', 'name': 'python3', 'last_activity': '2026-01-23T02:45:11.982243Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 333s E 333s E Diff is 830 characters long. Set self.maxDiff to None to see it. 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpemccetfw/runtime/kernel-6e5955ac-f69e-4829-823f-77964eea5536.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:57817 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50689 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 6e5955ac-f69e-4829-823f-77964eea5536, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.040000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.530000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.710000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.500000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 71cf9033-427b-4209-b39a-a08f25716e49 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71cf9033-427b-4209-b39a-a08f25716e49 333s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/63f233b2-3035-44c1-b868-e6de85535244 (::1) 0.460000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e5955ac-f69e-4829-823f-77964eea5536 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e5955ac-f69e-4829-823f-77964eea5536 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 3.810000ms referer=None 333s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ---------------------------- Captured stderr setup ----------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 51, in 333s import threading 333s File "/usr/lib/python3.14/threading.py", line 685, in 333s class Barrier: 333s ...<159 lines>... 333s return self._state == -2 333s KeyboardInterrupt 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.690000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpemccetfw/runtime/kernel-86b45298-0213-4fd7-a2df-2cb5648b0683.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40775 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53301 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 86b45298-0213-4fd7-a2df-2cb5648b0683, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.310000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 6e5955ac-f69e-4829-823f-77964eea5536 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e5955ac-f69e-4829-823f-77964eea5536 333s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 0.810000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.480000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.490000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 86b45298-0213-4fd7-a2df-2cb5648b0683 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 86b45298-0213-4fd7-a2df-2cb5648b0683 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s ERROR NotebookApp:log.py:55 { 333s "Host": "localhost:12341", 333s "Accept": "*/*", 333s "User-Agent": "python-requests/2.32.5" 333s } 333s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 3.950000ms referer=None 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "/usr/lib/python3.14/subprocess.py", line 49, in 333s import signal 333s File "/usr/lib/python3.14/signal.py", line 7, in 333s _IntEnum._convert_( 333s ~~~~~~~~~~~~~~~~~~^ 333s 'Signals', __name__, 333s ^^^^^^^^^^^^^^^^^^^^ 333s ...<2 lines>... 333s and (name.startswith('SIG') and not name.startswith('SIG_')) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s or name.startswith('CTRL_')) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 333s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 333s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 333s setattr(enum_class, name, member) 333s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 333s def __setattr__(cls, name, value): 333s 333s KeyboardInterrupt 333s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 333s 333s @self.addCleanup 333s def cleanup_sessions(): 333s for session in self.sess_api.list().json(): 333s > self.sess_api.delete(session['id']) 333s 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 333s return self._req('DELETE', id) 333s ^^^^^^^^^^^^^^^^^^^^^^^ 333s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 333s response.raise_for_status() 333s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 333s 333s self = 333s 333s def raise_for_status(self): 333s """Raises :class:`HTTPError`, if one occurred.""" 333s 333s http_error_msg = "" 333s if isinstance(self.reason, bytes): 333s # We attempt to decode utf-8 first because some servers 333s # choose to localize their reason strings. If the string 333s # isn't utf-8, we fall back to iso-8859-1 for all other 333s # encodings. (See PR #3538) 333s try: 333s reason = self.reason.decode("utf-8") 333s except UnicodeDecodeError: 333s reason = self.reason.decode("iso-8859-1") 333s else: 333s reason = self.reason 333s 333s if 400 <= self.status_code < 500: 333s http_error_msg = ( 333s f"{self.status_code} Client Error: {reason} for url: {self.url}" 333s ) 333s 333s elif 500 <= self.status_code < 600: 333s http_error_msg = ( 333s f"{self.status_code} Server Error: {reason} for url: {self.url}" 333s ) 333s 333s if http_error_msg: 333s > raise HTTPError(http_error_msg, response=self) 333s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 333s 333s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 333s ------------------------------ Captured log call ------------------------------- 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.840000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 333s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpemccetfw/runtime/kernel-8db6503f-abdd-4eb3-9c1d-a08bb6fc9289.json'] 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44431 333s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47805 333s INFO NotebookApp:kernelmanager.py:179 Kernel started: 8db6503f-abdd-4eb3-9c1d-a08bb6fc9289, name: python3 333s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpemccetfw/notebooks/foo'} 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 86b45298-0213-4fd7-a2df-2cb5648b0683 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 86b45298-0213-4fd7-a2df-2cb5648b0683 333s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 13.770000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.430000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.320000ms 333s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 333s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 8db6503f-abdd-4eb3-9c1d-a08bb6fc9289 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8db6503f-abdd-4eb3-9c1d-a08bb6fc9289 333s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11 (::1) 333s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a4bf9026-b181-4aef-b6c3-58b6281f3b11', version='HTTP/1.1', remote_ip='::1') 333s Traceback (most recent call last): 333s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 333s result = await result 333s ^^^^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 333s future.result() 333s ~~~~~~~~~~~~~^^ 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 333s yield maybe_future(sm.delete_session(session_id)) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 333s yielded = self.gen.throw(exc) 333s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 333s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 333s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 333s value = future.result() 333s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 333s raise self._exception.with_traceback(self._exception_tb) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 333s result = coro.send(None) 333s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 333s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 333s raise km.ready.exception() # type: ignore[misc] 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 333s await kernel_awaitable 333s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 333s result = await obj 333s ^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 333s raise e 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 333s out = await method(self, *args, **kwargs) 333s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 333s await self._async_finish_shutdown(restart=restart) 333s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 333s await asyncio.wait_for( 333s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 333s ) 333s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 333s async with timeouts.timeout(timeout): 333s ~~~~~~~~~~~~~~~~^^^^^^^^^ 333s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 333s raise RuntimeError("Timeout should be used inside a task") 333s RuntimeError: Timeout should be used inside a task 333s WARNING NotebookApp:handlers.py:612 Unhandled error 333s --------------------------- Captured stderr teardown --------------------------- 333s Traceback (most recent call last): 333s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 333s return _run_code(code, main_globals, None, 333s "__main__", mod_spec) 333s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 333s exec(code, run_globals) 333s ~~~~^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 333s from ipykernel import kernelapp as app 333s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 333s from .connect import * # noqa: F403 333s ^^^^^^^^^^^^^^^^^^^^^^ 333s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 333s from subprocess import PIPE, Popen 333s File "", line 1371, in _find_and_load 333s File "", line 1342, in _find_and_load_unlocked 333s File "", line 938, in _load_unlocked 333s File "", line 755, in exec_module 333s File "", line 888, in get_code 333s File "", line 511, in _compile_bytecode 333s KeyboardInterrupt 333s ---------------------------- Captured log teardown ----------------------------- 333s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 86b45298-0213-4fd7-a2df-2cb5648b0683 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6e5955ac-f69e-4829-823f-77964eea5536 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1793811a-9744-41db-bcf8-07ab16df749b 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 8db6503f-abdd-4eb3-9c1d-a08bb6fc9289 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 6eb2bb19-80ab-413d-9f72-f69809c51bf8 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 71cf9033-427b-4209-b39a-a08f25716e49 333s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 1283eb7c-5c1e-4956-b117-c8a2888424d8 333s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 333s =============================== warnings summary =============================== 333s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 333s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 333s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 333s return LooseVersion(v) >= LooseVersion(check) 333s 333s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 333s services/kernels/tests/test_kernels_api.py: 72 warnings 333s services/sessions/tests/test_sessions_api.py: 88 warnings 333s /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). 333s dt = unaware(*args, **kwargs) 333s 333s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 333s /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 333s pytestmark = pytest.mark.integration_tests 333s 333s services/kernels/tests/test_kernels_api.py: 6 warnings 333s services/sessions/tests/test_sessions_api.py: 6 warnings 333s /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 333s policy = events.get_event_loop_policy() 333s 333s services/kernels/tests/test_kernels_api.py: 24 warnings 333s services/sessions/tests/test_sessions_api.py: 19 warnings 333s /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 333s loop = events.get_event_loop_policy().get_event_loop() 333s 333s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 333s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 333s loop.make_current() 333s 333s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 333s =========================== short test summary info ============================ 333s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 333s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 333s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 333s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 333s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 333s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 333s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 333s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 333s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 333s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 333s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 333s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 333s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 333s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 333s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 333s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 333s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 333s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 333s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 333s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 333s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 333s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 333s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 333s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 333s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 333s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 333s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 333s ========== 23 failed, 307 deselected, 220 warnings, 4 errors in 3.14s ========== 333s *** END OF RUN 4: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 333s *** 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 335s ============================= test session starts ============================== 335s platform linux -- Python 3.14.2, pytest-9.0.2, pluggy-1.6.0 335s rootdir: /tmp/autopkgtest.vwY63z/autopkgtest_tmp 335s plugins: typeguard-4.4.4 335s collected 330 items / 307 deselected / 23 selected 335s run-last-failure: rerun previous 23 failures 335s 336s services/kernels/tests/test_kernels_api.py FFFEFFFFFEF [ 39%] 337s services/sessions/tests/test_sessions_api.py FFFFFEFFFFFFFEFF [100%] 337s 337s ==================================== ERRORS ==================================== 337s _________ ERROR at teardown of KernelAPITest.test_main_kernel_handler __________ 337s 337s self = 337s 337s def tearDown(self): 337s for k in self.kern_api.list().json(): 337s > self.kern_api.shutdown(k['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/86a55384-58e6-436a-bf19-972e5b5036c5 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ----------------------------- Captured stderr call ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 337s from glob import _StringGlobber, _no_recurse_symlinks 337s File "/usr/lib/python3.14/glob.py", line 5, in 337s import re 337s File "/usr/lib/python3.14/re/__init__.py", line 126, in 337s from . import _compiler, _parser 337s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 337s from . import _parser 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 888, in get_code 337s File "", line 511, in _compile_bytecode 337s KeyboardInterrupt 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7g1b2txe/runtime/kernel-86a55384-58e6-436a-bf19-972e5b5036c5.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34731 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47211 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 86a55384-58e6-436a-bf19-972e5b5036c5, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.860000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7g1b2txe/runtime/kernel-cb037435-65f1-4a71-bb80-4a075c686c50.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51297 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42505 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: cb037435-65f1-4a71-bb80-4a075c686c50, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.990000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: cb037435-65f1-4a71-bb80-4a075c686c50 337s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/cb037435-65f1-4a71-bb80-4a075c686c50/interrupt (::1) 0.470000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 337s yield maybe_future(km.restart_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 337s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 337s await ensure_async(kernel.restart_kernel(now=now)) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 337s await self._async_shutdown_kernel(now=now, restart=True) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/cb037435-65f1-4a71-bb80-4a075c686c50/restart (::1) 3.120000ms referer=None 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 86a55384-58e6-436a-bf19-972e5b5036c5 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 86a55384-58e6-436a-bf19-972e5b5036c5 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/86a55384-58e6-436a-bf19-972e5b5036c5 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/86a55384-58e6-436a-bf19-972e5b5036c5', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 337s yielded = ctx_run(next, result) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/86a55384-58e6-436a-bf19-972e5b5036c5 (::1) 3.410000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 337s import jupyter_client 337s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 337s from .asynchronous import AsyncKernelClient 337s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 337s from .client import AsyncKernelClient # noqa 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 337s import zmq.asyncio 337s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 337s from zmq import sugar 337s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 337s from zmq.sugar import context, frame, poll, socket, tracker, version 337s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 337s from .socket import Socket, SyncSocket 337s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 337s _SocketType = TypeVar("_SocketType", bound="Socket") 337s File "/usr/lib/python3.14/typing.py", line 202, in _type_check 337s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms, owner=owner) 337s File "/usr/lib/python3.14/typing.py", line 180, in _type_convert 337s return _make_forward_ref(arg, module=module, is_class=allow_special_forms, owner=owner) 337s File "/usr/lib/python3.14/typing.py", line 958, in _make_forward_ref 337s forward_ref = _lazy_annotationlib.ForwardRef(code, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/typing.py", line 168, in __getattr__ 337s import annotationlib 337s File "/usr/lib/python3.14/annotationlib.py", line 53, in 337s class ForwardRef: 337s ...<261 lines>... 337s return f"ForwardRef({self.__forward_arg__!r}{''.join(extra)})" 337s KeyboardInterrupt 337s _______ ERROR at teardown of AsyncKernelAPITest.test_main_kernel_handler _______ 337s 337s self = 337s 337s def tearDown(self): 337s for k in self.kern_api.list().json(): 337s > self.kern_api.shutdown(k['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/a3179148-f2cb-48bd-a11d-bff3454c4382 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ---------------------------- Captured stderr setup ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 337s from pathlib._os import ( 337s ...<3 lines>... 337s ) 337s File "", line 1371, in _find_and_load 337s File "", line 1333, in _find_and_load_unlocked 337s File "", line 1267, in _find_spec 337s File "", line 1292, in find_spec 337s File "", line 1266, in _get_spec 337s File "", line 1369, in find_spec 337s File "", line 1419, in _fill_cache 337s KeyboardInterrupt 337s ----------------------------- Captured stderr call ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 9, in 337s import operator 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 924, in _load_unlocked 337s File "", line 822, in module_from_spec 337s File "", line 801, in _init_module_attrs 337s File "", line 641, in cached 337s File "", line 372, in _get_cached 337s File "", line 276, in cache_from_source 337s KeyboardInterrupt 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_nis7vbt/runtime/kernel-a3179148-f2cb-48bd-a11d-bff3454c4382.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50617 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38585 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: a3179148-f2cb-48bd-a11d-bff3454c4382, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.360000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.900000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_nis7vbt/runtime/kernel-d3d57e2d-800e-4c5e-b179-2128c3372f90.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50155 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41743 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3d57e2d-800e-4c5e-b179-2128c3372f90, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.100000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.350000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d3d57e2d-800e-4c5e-b179-2128c3372f90 337s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d3d57e2d-800e-4c5e-b179-2128c3372f90/interrupt (::1) 3.380000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 337s yield maybe_future(km.restart_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 337s result = coro.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 337s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 337s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 337s yield self # This tells Task to wait for completion. 337s ^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 337s await ensure_async(kernel.restart_kernel(now=now)) 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 337s await self._async_shutdown_kernel(now=now, restart=True) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d3d57e2d-800e-4c5e-b179-2128c3372f90/restart (::1) 3.160000ms referer=None 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a3179148-f2cb-48bd-a11d-bff3454c4382 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a3179148-f2cb-48bd-a11d-bff3454c4382 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a3179148-f2cb-48bd-a11d-bff3454c4382 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a3179148-f2cb-48bd-a11d-bff3454c4382', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 12, in 337s import jupyter_client 337s File "/usr/lib/python3/dist-packages/jupyter_client/__init__.py", line 4, in 337s from .asynchronous import AsyncKernelClient 337s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/__init__.py", line 1, in 337s from .client import AsyncKernelClient # noqa 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/asynchronous/client.py", line 9, in 337s import zmq.asyncio 337s File "/usr/lib/python3/dist-packages/zmq/__init__.py", line 57, in 337s from zmq import sugar 337s File "/usr/lib/python3/dist-packages/zmq/sugar/__init__.py", line 11, in 337s from zmq.sugar import context, frame, poll, socket, tracker, version 337s File "/usr/lib/python3/dist-packages/zmq/sugar/context.py", line 23, in 337s from .socket import Socket, SyncSocket 337s File "/usr/lib/python3/dist-packages/zmq/sugar/socket.py", line 42, in 337s _SocketType = TypeVar("_SocketType", bound="Socket") 337s File "/usr/lib/python3.14/typing.py", line 202, in _type_check 337s arg = _type_convert(arg, module=module, allow_special_forms=allow_special_forms, owner=owner) 337s File "/usr/lib/python3.14/typing.py", line 180, in _type_convert 337s return _make_forward_ref(arg, module=module, is_class=allow_special_forms, owner=owner) 337s File "/usr/lib/python3.14/typing.py", line 958, in _make_forward_ref 337s forward_ref = _lazy_annotationlib.ForwardRef(code, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/typing.py", line 168, in __getattr__ 337s import annotationlib 337s File "/usr/lib/python3.14/annotationlib.py", line 3, in 337s import ast 337s File "/usr/lib/python3.14/ast.py", line 23, in 337s from _ast import * 337s KeyboardInterrupt 337s ________ ERROR at teardown of SessionAPITest.test_create_with_kernel_id ________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxyylu9ja/runtime/kernel-79d22db8-1643-4cc1-8b92-292520880fab.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49919 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50659 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 79d22db8-1643-4cc1-8b92-292520880fab, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.190000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.440000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.530000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.350000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24a7055d-a518-41e5-8f99-2b81deef0d69 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24a7055d-a518-41e5-8f99-2b81deef0d69 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b2e7b4ed-7a0e-4d9a-8d69-5818fd5463b5 (::1) 0.620000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79d22db8-1643-4cc1-8b92-292520880fab 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79d22db8-1643-4cc1-8b92-292520880fab 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 337s yielded = self.gen.send(value) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 4.570000ms referer=None 337s _____ ERROR at teardown of AsyncSessionAPITest.test_create_with_kernel_id ______ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_srefdfc/runtime/kernel-5fa36447-b6dd-40bf-87ad-d501779904d4.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49273 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42051 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5fa36447-b6dd-40bf-87ad-d501779904d4, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.080000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.190000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4db975ef-34f3-44d2-9c3d-e8227f732403 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4db975ef-34f3-44d2-9c3d-e8227f732403 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/275a6b37-699f-4b7a-8920-59399301bce9 (::1) 0.750000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fa36447-b6dd-40bf-87ad-d501779904d4 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fa36447-b6dd-40bf-87ad-d501779904d4 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 4.170000ms referer=None 337s =================================== FAILURES =================================== 337s ______________________ KernelAPITest.test_default_kernel _______________________ 337s 337s self = 337s 337s def tearDown(self): 337s for k in self.kern_api.list().json(): 337s > self.kern_api.shutdown(k['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/0cdfc780-0201-4ea2-966b-11c34a8e9818 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log setup ------------------------------ 337s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp7g1b2txe/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp7g1b2txe/etc/jupyter'] for config files 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7g1b2txe/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp7g1b2txe/config 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7g1b2txe/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp7g1b2txe/config 337s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp7g1b2txe/notebooks 337s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 337s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 337s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 337s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 337s WARNING NotebookApp:handlers.py:612 Forbidden 337s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.520000ms referer=None 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7g1b2txe/runtime/kernel-0cdfc780-0201-4ea2-966b-11c34a8e9818.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46147 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54861 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0cdfc780-0201-4ea2-966b-11c34a8e9818, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 32.030000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.330000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cdfc780-0201-4ea2-966b-11c34a8e9818 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cdfc780-0201-4ea2-966b-11c34a8e9818 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/0cdfc780-0201-4ea2-966b-11c34a8e9818 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/0cdfc780-0201-4ea2-966b-11c34a8e9818', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 337s yielded = ctx_run(next, result) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/0cdfc780-0201-4ea2-966b-11c34a8e9818 (::1) 4.700000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 337s import json 337s File "/usr/lib/python3.14/json/__init__.py", line 106, in 337s from .decoder import JSONDecoder, JSONDecodeError 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 888, in get_code 337s File "", line 511, in _compile_bytecode 337s KeyboardInterrupt 337s ______________________ KernelAPITest.test_kernel_handler _______________________ 337s 337s self = 337s 337s def test_kernel_handler(self): 337s # GET kernel with given id 337s kid = self.kern_api.start().json()['id'] 337s r = self.kern_api.get(kid) 337s kern1 = r.json() 337s self.assertEqual(r.status_code, 200) 337s assert isinstance(kern1, dict) 337s self.assertIn('id', kern1) 337s self.assertEqual(kern1['id'], kid) 337s 337s # Request a bad kernel id and check that a JSON 337s # message is returned! 337s bad_id = '111-111-111-111-111' 337s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 337s self.kern_api.get(bad_id) 337s 337s # DELETE kernel with id 337s > r = self.kern_api.shutdown(kid) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/74dddf2c-3467-480f-809b-2c54f51b1cd1 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7g1b2txe/runtime/kernel-74dddf2c-3467-480f-809b-2c54f51b1cd1.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44501 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46451 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 74dddf2c-3467-480f-809b-2c54f51b1cd1, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.230000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/74dddf2c-3467-480f-809b-2c54f51b1cd1 (::1) 0.390000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s 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 337s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 337s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.380000ms referer=None 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74dddf2c-3467-480f-809b-2c54f51b1cd1 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74dddf2c-3467-480f-809b-2c54f51b1cd1 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/74dddf2c-3467-480f-809b-2c54f51b1cd1 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/74dddf2c-3467-480f-809b-2c54f51b1cd1', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 337s yielded = ctx_run(next, result) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/74dddf2c-3467-480f-809b-2c54f51b1cd1 (::1) 4.300000ms referer=None 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.140000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0cdfc780-0201-4ea2-966b-11c34a8e9818 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0cdfc780-0201-4ea2-966b-11c34a8e9818 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/0cdfc780-0201-4ea2-966b-11c34a8e9818 (::1) 0.440000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 74dddf2c-3467-480f-809b-2c54f51b1cd1 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 74dddf2c-3467-480f-809b-2c54f51b1cd1 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 1, in 337s from ._version import ( 337s ...<4 lines>... 337s ) 337s File "/usr/lib/python3/dist-packages/ipykernel/_version.py", line 11, in 337s match = re.match(pattern, __version__) 337s File "/usr/lib/python3.14/re/__init__.py", line 167, in match 337s return _compile(pattern, flags).match(string) 337s ~~~~~~~~^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/re/__init__.py", line 351, in _compile 337s if flags & DEBUG: 337s ~~~~~~^~~~~~~ 337s File "/usr/lib/python3.14/enum.py", line 1593, in __and__ 337s def __and__(self, other): 337s 337s KeyboardInterrupt 337s ____________________ KernelAPITest.test_main_kernel_handler ____________________ 337s 337s self = 337s 337s def test_main_kernel_handler(self): 337s # POST request 337s r = self.kern_api.start() 337s kern1 = r.json() 337s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 337s self.assertEqual(r.status_code, 201) 337s self.assertIsInstance(kern1, dict) 337s 337s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 337s expected_csp = '; '.join([ 337s "frame-ancestors 'self'", 337s 'report-uri ' + report_uri, 337s "default-src 'none'" 337s ]) 337s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 337s 337s # GET request 337s r = self.kern_api.list() 337s self.assertEqual(r.status_code, 200) 337s assert isinstance(r.json(), list) 337s self.assertEqual(r.json()[0]['id'], kern1['id']) 337s self.assertEqual(r.json()[0]['name'], kern1['name']) 337s 337s # create another kernel and check that they both are added to the 337s # list of kernels from a GET request 337s kern2 = self.kern_api.start().json() 337s assert isinstance(kern2, dict) 337s r = self.kern_api.list() 337s kernels = r.json() 337s self.assertEqual(r.status_code, 200) 337s assert isinstance(kernels, list) 337s self.assertEqual(len(kernels), 2) 337s 337s # Interrupt a kernel 337s r = self.kern_api.interrupt(kern2['id']) 337s self.assertEqual(r.status_code, 204) 337s 337s # Restart a kernel 337s > r = self.kern_api.restart(kern2['id']) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 337s return self._req('POST', url_path_join(id, 'restart')) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/cb037435-65f1-4a71-bb80-4a075c686c50/restart 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ----------------------------- Captured stderr call ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 14, in 337s from glob import _StringGlobber, _no_recurse_symlinks 337s File "/usr/lib/python3.14/glob.py", line 5, in 337s import re 337s File "/usr/lib/python3.14/re/__init__.py", line 126, in 337s from . import _compiler, _parser 337s File "/usr/lib/python3.14/re/_compiler.py", line 14, in 337s from . import _parser 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 888, in get_code 337s File "", line 511, in _compile_bytecode 337s KeyboardInterrupt 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7g1b2txe/runtime/kernel-86a55384-58e6-436a-bf19-972e5b5036c5.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34731 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47211 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 86a55384-58e6-436a-bf19-972e5b5036c5, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 12.860000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.370000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp7g1b2txe/runtime/kernel-cb037435-65f1-4a71-bb80-4a075c686c50.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:51297 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42505 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: cb037435-65f1-4a71-bb80-4a075c686c50, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.990000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.350000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: cb037435-65f1-4a71-bb80-4a075c686c50 337s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/cb037435-65f1-4a71-bb80-4a075c686c50/interrupt (::1) 0.470000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 337s yield maybe_future(km.restart_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 337s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 337s await ensure_async(kernel.restart_kernel(now=now)) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 337s await self._async_shutdown_kernel(now=now, restart=True) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/cb037435-65f1-4a71-bb80-4a075c686c50/restart (::1) 3.120000ms referer=None 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.360000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 86a55384-58e6-436a-bf19-972e5b5036c5 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 86a55384-58e6-436a-bf19-972e5b5036c5 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/86a55384-58e6-436a-bf19-972e5b5036c5 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/86a55384-58e6-436a-bf19-972e5b5036c5', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 239, in wrapper 337s yielded = ctx_run(next, result) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/86a55384-58e6-436a-bf19-972e5b5036c5 (::1) 3.410000ms referer=None 337s ________________________ KernelAPITest.test_no_kernels _________________________ 337s 337s self = 337s 337s def test_no_kernels(self): 337s """Make sure there are no kernels running at the start""" 337s kernels = self.kern_api.list().json() 337s > self.assertEqual(kernels, []) 337s E AssertionError: Lists differ: [{'id': '86a55384-58e6-436a-bf19-972e5b503[281 chars]: 0}] != [] 337s E 337s E First list contains 2 additional elements. 337s E First extra element 0: 337s E {'id': '86a55384-58e6-436a-bf19-972e5b5036c5', 'name': 'python3', 'last_activity': '2026-01-23T02:45:14.498338Z', 'execution_state': 'starting', 'connections': 0} 337s E 337s E + [] 337s E - [{'connections': 0, 337s E - 'execution_state': 'starting', 337s E - 'id': '86a55384-58e6-436a-bf19-972e5b5036c5', 337s E - 'last_activity': '2026-01-23T02:45:14.498338Z', 337s E - 'name': 'python3'}, 337s E - {'connections': 0, 337s E - 'execution_state': 'starting', 337s E - 'id': 'cb037435-65f1-4a71-bb80-4a075c686c50', 337s E - 'last_activity': '2026-01-23T02:45:14.517548Z', 337s E - 'name': 'python3'}] 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.480000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.380000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 86a55384-58e6-436a-bf19-972e5b5036c5 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 86a55384-58e6-436a-bf19-972e5b5036c5 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/86a55384-58e6-436a-bf19-972e5b5036c5 (::1) 1.200000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for cb037435-65f1-4a71-bb80-4a075c686c50 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: cb037435-65f1-4a71-bb80-4a075c686c50 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/cb037435-65f1-4a71-bb80-4a075c686c50 (::1) 0.500000ms 337s ---------------------------- Captured log teardown ----------------------------- 337s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 337s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 337s _____________________ AsyncKernelAPITest.test_connections ______________________ 337s 337s self = 337s 337s def tearDown(self): 337s for k in self.kern_api.list().json(): 337s > self.kern_api.shutdown(k['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log setup ------------------------------ 337s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp_nis7vbt/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp_nis7vbt/etc/jupyter'] for config files 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_nis7vbt/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_nis7vbt/config 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_nis7vbt/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_nis7vbt/config 337s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp_nis7vbt/notebooks 337s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 337s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 337s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 337s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 337s WARNING NotebookApp:handlers.py:612 Forbidden 337s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.310000ms referer=None 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_nis7vbt/runtime/kernel-d584adb6-afe9-49a1-b920-46d48065860a.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43579 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40489 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: d584adb6-afe9-49a1-b920-46d48065860a, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.310000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a (::1) 1.370000ms 337s DEBUG NotebookApp:zmqhandlers.py:298 Initializing websocket connection /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a/channels 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s WARNING NotebookApp:zmqhandlers.py:286 No session ID specified 337s DEBUG NotebookApp:handlers.py:277 Requesting kernel info from d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45883 337s DEBUG NotebookApp:handlers.py:306 Received kernel info: {'status': 'ok', 'protocol_version': '5.3', 'implementation': 'ipython', 'implementation_version': '8.35.0', 'language_info': {'name': 'python', 'version': '3.14.2', 'mimetype': 'text/x-python', 'codemirror_mode': {'name': 'ipython', 'version': 3}, 'pygments_lexer': 'ipython3', 'nbconvert_exporter': 'python', 'file_extension': '.py'}, 'banner': "Python 3.14.2 (main, Dec 6 2025, 13:20:08) [GCC 15.2.0]\nType 'copyright', 'credits' or 'license' for more information\nIPython 8.35.0 -- An enhanced Interactive Python. Type '?' for help.\n", 'help_links': [{'text': 'Python Reference', 'url': 'https://docs.python.org/3.14'}, {'text': 'IPython Reference', 'url': 'https://ipython.org/documentation.html'}, {'text': 'NumPy Reference', 'url': 'https://docs.scipy.org/doc/numpy/reference/'}, {'text': 'SciPy Reference', 'url': 'https://docs.scipy.org/doc/scipy/reference/'}, {'text': 'Matplotlib Reference', 'url': 'https://matplotlib.org/contents.html'}, {'text': 'SymPy Reference', 'url': 'http://docs.sympy.org/latest/index.html'}, {'text': 'pandas Reference', 'url': 'https://pandas.pydata.org/pandas-docs/stable/'}]} 337s INFO NotebookApp:handlers.py:326 Adapting from protocol version 5.3 (kernel d584adb6-afe9-49a1-b920-46d48065860a) to 5.4 (client). 337s DEBUG NotebookApp:log.py:59 101 GET /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a/channels (::1) 400.540000ms 337s DEBUG NotebookApp:zmqhandlers.py:159 Opening websocket /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a/channels 337s DEBUG NotebookApp:kernelmanager.py:252 Getting buffer for d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40489 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45883 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43579 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:53781 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:45883 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43579 337s WARNING NotebookApp:websocket.py:1327 The websocket_ping_timeout (90000) cannot be longer than the websocket_ping_interval (30000). 337s Setting websocket_ping_timeout=30000 337s DEBUG NotebookApp:handlers.py:255 Nudge: attempt 1 on kernel d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a (::1) 1.190000ms 337s DEBUG NotebookApp:handlers.py:207 Nudge: IOPub received: d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:handlers.py:210 Nudge: resolving iopub future: d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:handlers.py:201 Nudge: control info reply received: d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:handlers.py:203 Nudge: resolving control future: d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:handlers.py:195 Nudge: shell info reply received: d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:handlers.py:579 Websocket closed d584adb6-afe9-49a1-b920-46d48065860a:5ce6f20f-cfd795dbedeb452d97386943 337s INFO NotebookApp:kernelmanager.py:222 Starting buffering for d584adb6-afe9-49a1-b920-46d48065860a:5ce6f20f-cfd795dbedeb452d97386943 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on d584adb6-afe9-49a1-b920-46d48065860a:iopub 337s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on d584adb6-afe9-49a1-b920-46d48065860a:iopub 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:235 Buffering msg on d584adb6-afe9-49a1-b920-46d48065860a:iopub 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a (::1) 0.490000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a (::1) 0.370000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.460000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d584adb6-afe9-49a1-b920-46d48065860a 337s INFO NotebookApp:kernelmanager.py:286 Discarding 3 buffered messages for d584adb6-afe9-49a1-b920-46d48065860a:5ce6f20f-cfd795dbedeb452d97386943 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d584adb6-afe9-49a1-b920-46d48065860a 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a (::1) 4.170000ms referer=None 337s ____________________ AsyncKernelAPITest.test_default_kernel ____________________ 337s 337s self = 337s 337s def tearDown(self): 337s for k in self.kern_api.list().json(): 337s > self.kern_api.shutdown(k['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:86: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/9d9c58aa-3375-4722-964f-6f133ea00e95 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_nis7vbt/runtime/kernel-9d9c58aa-3375-4722-964f-6f133ea00e95.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49463 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:54837 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 9d9c58aa-3375-4722-964f-6f133ea00e95, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.370000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.490000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d584adb6-afe9-49a1-b920-46d48065860a 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d584adb6-afe9-49a1-b920-46d48065860a 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d584adb6-afe9-49a1-b920-46d48065860a (::1) 0.480000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d9c58aa-3375-4722-964f-6f133ea00e95 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d9c58aa-3375-4722-964f-6f133ea00e95 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/9d9c58aa-3375-4722-964f-6f133ea00e95 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/9d9c58aa-3375-4722-964f-6f133ea00e95', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/9d9c58aa-3375-4722-964f-6f133ea00e95 (::1) 4.110000ms referer=None 337s ____________________ AsyncKernelAPITest.test_kernel_handler ____________________ 337s 337s self = 337s 337s def test_kernel_handler(self): 337s # GET kernel with given id 337s kid = self.kern_api.start().json()['id'] 337s r = self.kern_api.get(kid) 337s kern1 = r.json() 337s self.assertEqual(r.status_code, 200) 337s assert isinstance(kern1, dict) 337s self.assertIn('id', kern1) 337s self.assertEqual(kern1['id'], kid) 337s 337s # Request a bad kernel id and check that a JSON 337s # message is returned! 337s bad_id = '111-111-111-111-111' 337s with assert_http_error(404, 'Kernel does not exist: ' + bad_id): 337s self.kern_api.get(bad_id) 337s 337s # DELETE kernel with id 337s > r = self.kern_api.shutdown(kid) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:169: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:57: in shutdown 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/kernels/937bf214-0cbd-4533-8d3e-ea5444de63e6 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ----------------------------- Captured stderr call ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 77, in 337s class PurePath: 337s ...<516 lines>... 337s return True 337s KeyboardInterrupt 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_nis7vbt/runtime/kernel-937bf214-0cbd-4533-8d3e-ea5444de63e6.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:47965 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49777 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 937bf214-0cbd-4533-8d3e-ea5444de63e6, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 15.110000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels/937bf214-0cbd-4533-8d3e-ea5444de63e6 (::1) 0.600000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s 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 337s WARNING NotebookApp:handlers.py:612 Kernel does not exist: 111-111-111-111-111 337s WARNING NotebookApp:log.py:59 404 GET /a%40b/api/kernels/111-111-111-111-111 (::1) 0.550000ms referer=None 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 937bf214-0cbd-4533-8d3e-ea5444de63e6 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 937bf214-0cbd-4533-8d3e-ea5444de63e6 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/937bf214-0cbd-4533-8d3e-ea5444de63e6 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/937bf214-0cbd-4533-8d3e-ea5444de63e6', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/kernels/937bf214-0cbd-4533-8d3e-ea5444de63e6 (::1) 6.290000ms referer=None 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.890000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 9d9c58aa-3375-4722-964f-6f133ea00e95 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d9c58aa-3375-4722-964f-6f133ea00e95 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/9d9c58aa-3375-4722-964f-6f133ea00e95 (::1) 1.410000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 937bf214-0cbd-4533-8d3e-ea5444de63e6 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 937bf214-0cbd-4533-8d3e-ea5444de63e6 337s _________________ AsyncKernelAPITest.test_main_kernel_handler __________________ 337s 337s self = 337s 337s def test_main_kernel_handler(self): 337s # POST request 337s r = self.kern_api.start() 337s kern1 = r.json() 337s self.assertEqual(r.headers['location'], url_path_join(self.url_prefix, 'api/kernels', kern1['id'])) 337s self.assertEqual(r.status_code, 201) 337s self.assertIsInstance(kern1, dict) 337s 337s report_uri = url_path_join(self.url_prefix, 'api/security/csp-report') 337s expected_csp = '; '.join([ 337s "frame-ancestors 'self'", 337s 'report-uri ' + report_uri, 337s "default-src 'none'" 337s ]) 337s self.assertEqual(r.headers['Content-Security-Policy'], expected_csp) 337s 337s # GET request 337s r = self.kern_api.list() 337s self.assertEqual(r.status_code, 200) 337s assert isinstance(r.json(), list) 337s self.assertEqual(r.json()[0]['id'], kern1['id']) 337s self.assertEqual(r.json()[0]['name'], kern1['name']) 337s 337s # create another kernel and check that they both are added to the 337s # list of kernels from a GET request 337s kern2 = self.kern_api.start().json() 337s assert isinstance(kern2, dict) 337s r = self.kern_api.list() 337s kernels = r.json() 337s self.assertEqual(r.status_code, 200) 337s assert isinstance(kernels, list) 337s self.assertEqual(len(kernels), 2) 337s 337s # Interrupt a kernel 337s r = self.kern_api.interrupt(kern2['id']) 337s self.assertEqual(r.status_code, 204) 337s 337s # Restart a kernel 337s > r = self.kern_api.restart(kern2['id']) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:147: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:63: in restart 337s return self._req('POST', url_path_join(id, 'restart')) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:42: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: http://localhost:12341/a%40b/api/kernels/d3d57e2d-800e-4c5e-b179-2128c3372f90/restart 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ---------------------------- Captured stderr setup ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 28, in 337s from pathlib._os import ( 337s ...<3 lines>... 337s ) 337s File "", line 1371, in _find_and_load 337s File "", line 1333, in _find_and_load_unlocked 337s File "", line 1267, in _find_spec 337s File "", line 1292, in find_spec 337s File "", line 1266, in _get_spec 337s File "", line 1369, in find_spec 337s File "", line 1419, in _fill_cache 337s KeyboardInterrupt 337s ----------------------------- Captured stderr call ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 9, in 337s import operator 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 924, in _load_unlocked 337s File "", line 822, in module_from_spec 337s File "", line 801, in _init_module_attrs 337s File "", line 641, in cached 337s File "", line 372, in _get_cached 337s File "", line 276, in cache_from_source 337s KeyboardInterrupt 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_nis7vbt/runtime/kernel-a3179148-f2cb-48bd-a11d-bff3454c4382.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50617 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38585 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: a3179148-f2cb-48bd-a11d-bff3454c4382, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.360000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 3.900000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_nis7vbt/runtime/kernel-d3d57e2d-800e-4c5e-b179-2128c3372f90.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50155 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41743 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: d3d57e2d-800e-4c5e-b179-2128c3372f90, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 16.100000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.350000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s INFO NotebookApp:multikernelmanager.py:396 Kernel interrupted: d3d57e2d-800e-4c5e-b179-2128c3372f90 337s DEBUG NotebookApp:log.py:59 204 POST /a%40b/api/kernels/d3d57e2d-800e-4c5e-b179-2128c3372f90/interrupt (::1) 3.380000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:handlers.py:91 Exception restarting kernel 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 89, in post 337s yield maybe_future(km.restart_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 291, in __step_run_and_handle_result 337s result = coro.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 314, in restart_kernel 337s await maybe_future(self.pinned_superclass.restart_kernel(self, kernel_id, now=now)) 337s File "/usr/lib/python3.14/asyncio/futures.py", line 295, in __await__ 337s yield self # This tells Task to wait for completion. 337s ^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 434, in _async_restart_kernel 337s await ensure_async(kernel.restart_kernel(now=now)) 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 590, in _async_restart_kernel 337s await self._async_shutdown_kernel(now=now, restart=True) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 POST /a%40b/api/kernels/d3d57e2d-800e-4c5e-b179-2128c3372f90/restart (::1) 3.160000ms referer=None 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a3179148-f2cb-48bd-a11d-bff3454c4382 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a3179148-f2cb-48bd-a11d-bff3454c4382 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/kernels/a3179148-f2cb-48bd-a11d-bff3454c4382 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/kernels/a3179148-f2cb-48bd-a11d-bff3454c4382', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/handlers.py", line 72, in delete 337s yield maybe_future(km.shutdown_kernel(kernel_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ______________________ AsyncKernelAPITest.test_no_kernels ______________________ 337s 337s self = 337s 337s def test_no_kernels(self): 337s """Make sure there are no kernels running at the start""" 337s kernels = self.kern_api.list().json() 337s > self.assertEqual(kernels, []) 337s E AssertionError: Lists differ: [{'id': 'a3179148-f2cb-48bd-a11d-bff3454c4[281 chars]: 0}] != [] 337s E 337s E First list contains 2 additional elements. 337s E First extra element 0: 337s E {'id': 'a3179148-f2cb-48bd-a11d-bff3454c4382', 'name': 'python3', 'last_activity': '2026-01-23T02:45:15.142664Z', 'execution_state': 'starting', 'connections': 0} 337s E 337s E + [] 337s E - [{'connections': 0, 337s E - 'execution_state': 'starting', 337s E - 'id': 'a3179148-f2cb-48bd-a11d-bff3454c4382', 337s E - 'last_activity': '2026-01-23T02:45:15.142664Z', 337s E - 'name': 'python3'}, 337s E - {'connections': 0, 337s E - 'execution_state': 'starting', 337s E - 'id': 'd3d57e2d-800e-4c5e-b179-2128c3372f90', 337s E - 'last_activity': '2026-01-23T02:45:15.164654Z', 337s E - 'name': 'python3'}] 337s 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:91: AssertionError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.560000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.400000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a3179148-f2cb-48bd-a11d-bff3454c4382 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a3179148-f2cb-48bd-a11d-bff3454c4382 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/a3179148-f2cb-48bd-a11d-bff3454c4382 (::1) 0.770000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d3d57e2d-800e-4c5e-b179-2128c3372f90 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d3d57e2d-800e-4c5e-b179-2128c3372f90 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/kernels/d3d57e2d-800e-4c5e-b179-2128c3372f90 (::1) 0.480000ms 337s ---------------------------- Captured log teardown ----------------------------- 337s INFO NotebookApp:notebookapp.py:2164 Shutting down 0 kernels 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 9d9c58aa-3375-4722-964f-6f133ea00e95 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a3179148-f2cb-48bd-a11d-bff3454c4382 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 937bf214-0cbd-4533-8d3e-ea5444de63e6 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d584adb6-afe9-49a1-b920-46d48065860a 337s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 337s __________________________ SessionAPITest.test_create __________________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b23dbcf4-f1c8-4dee-bcd8-dcf049fd54b7 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log setup ------------------------------ 337s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmpxyylu9ja/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmpxyylu9ja/etc/jupyter'] for config files 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpxyylu9ja/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmpxyylu9ja/config 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpxyylu9ja/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmpxyylu9ja/config 337s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmpxyylu9ja/notebooks 337s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 337s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 337s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 337s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 337s WARNING NotebookApp:handlers.py:612 Forbidden 337s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.670000ms referer=None 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.760000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxyylu9ja/runtime/kernel-193a2ed0-7997-4936-9579-7cd361b6390b.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:38483 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49903 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 193a2ed0-7997-4936-9579-7cd361b6390b, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpxyylu9ja/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.500000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.460000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/b23dbcf4-f1c8-4dee-bcd8-dcf049fd54b7 (::1) 0.450000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 193a2ed0-7997-4936-9579-7cd361b6390b 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 193a2ed0-7997-4936-9579-7cd361b6390b 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b23dbcf4-f1c8-4dee-bcd8-dcf049fd54b7 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b23dbcf4-f1c8-4dee-bcd8-dcf049fd54b7', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 337s yielded = self.gen.send(value) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/b23dbcf4-f1c8-4dee-bcd8-dcf049fd54b7 (::1) 4.590000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 337s from subprocess import PIPE, Popen 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 924, in _load_unlocked 337s File "", line 822, in module_from_spec 337s File "", line 801, in _init_module_attrs 337s File "", line 641, in cached 337s File "", line 372, in _get_cached 337s File "", line 276, in cache_from_source 337s KeyboardInterrupt 337s __________________ SessionAPITest.test_create_console_session __________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/dc398852-7aa0-4ce8-9076-0d0b18634822 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxyylu9ja/runtime/kernel-0db8ab39-1efc-4229-a06f-9194f3a56cbf.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:39683 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60931 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 0db8ab39-1efc-4229-a06f-9194f3a56cbf, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpxyylu9ja/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.610000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.400000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 193a2ed0-7997-4936-9579-7cd361b6390b 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 193a2ed0-7997-4936-9579-7cd361b6390b 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b23dbcf4-f1c8-4dee-bcd8-dcf049fd54b7 (::1) 1.380000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0db8ab39-1efc-4229-a06f-9194f3a56cbf 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0db8ab39-1efc-4229-a06f-9194f3a56cbf 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/dc398852-7aa0-4ce8-9076-0d0b18634822 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/dc398852-7aa0-4ce8-9076-0d0b18634822', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 337s yielded = self.gen.send(value) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 337s import json 337s File "/usr/lib/python3.14/json/__init__.py", line 106, in 337s from .decoder import JSONDecoder, JSONDecodeError 337s File "/usr/lib/python3.14/json/decoder.py", line 133, in 337s WHITESPACE = re.compile(r'[ \t\n\r]*', FLAGS) 337s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 337s return _compile(pattern, flags) 337s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 337s p = _compiler.compile(pattern, flags) 337s File "/usr/lib/python3.14/re/_compiler.py", line 766, in compile 337s code = _code(p, flags) 337s File "/usr/lib/python3.14/re/_compiler.py", line 596, in _code 337s _compile_info(code, p, flags) 337s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/re/_compiler.py", line 529, in _compile_info 337s lo, hi = pattern.getwidth() 337s ~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/re/_parser.py", line 205, in getwidth 337s hi = MAXWIDTH 337s ^^ 337s KeyboardInterrupt 337s ____________________ SessionAPITest.test_create_deprecated _____________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/c4879f95-0c72-466d-951d-8ec161d9eb73 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxyylu9ja/runtime/kernel-4ace7b3d-c4cf-457d-8aad-753aee68f78b.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:36409 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:43803 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4ace7b3d-c4cf-457d-8aad-753aee68f78b, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpxyylu9ja/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.740000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.260000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 0db8ab39-1efc-4229-a06f-9194f3a56cbf 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 0db8ab39-1efc-4229-a06f-9194f3a56cbf 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/dc398852-7aa0-4ce8-9076-0d0b18634822 (::1) 2.310000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4ace7b3d-c4cf-457d-8aad-753aee68f78b 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4ace7b3d-c4cf-457d-8aad-753aee68f78b 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/c4879f95-0c72-466d-951d-8ec161d9eb73 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/c4879f95-0c72-466d-951d-8ec161d9eb73', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 337s yielded = self.gen.send(value) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/c4879f95-0c72-466d-951d-8ec161d9eb73 (::1) 4.370000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 337s import json 337s File "/usr/lib/python3.14/json/__init__.py", line 106, in 337s from .decoder import JSONDecoder, JSONDecodeError 337s File "/usr/lib/python3.14/json/decoder.py", line 54, in 337s STRINGCHUNK = re.compile(r'(.*?)(["\\\x00-\x1f])', FLAGS) 337s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 337s return _compile(pattern, flags) 337s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 337s p = _compiler.compile(pattern, flags) 337s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 337s p = _parser.parse(p, flags) 337s File "/usr/lib/python3.14/re/_parser.py", line 969, in parse 337s state = State() 337s File "/usr/lib/python3.14/re/_parser.py", line 77, in __init__ 337s def __init__(self): 337s 337s KeyboardInterrupt 337s ___________________ SessionAPITest.test_create_file_session ____________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/b2e7b4ed-7a0e-4d9a-8d69-5818fd5463b5 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxyylu9ja/runtime/kernel-24a7055d-a518-41e5-8f99-2b81deef0d69.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:46221 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60001 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 24a7055d-a518-41e5-8f99-2b81deef0d69, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmpxyylu9ja/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.970000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.410000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4ace7b3d-c4cf-457d-8aad-753aee68f78b 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4ace7b3d-c4cf-457d-8aad-753aee68f78b 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/c4879f95-0c72-466d-951d-8ec161d9eb73 (::1) 0.580000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24a7055d-a518-41e5-8f99-2b81deef0d69 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24a7055d-a518-41e5-8f99-2b81deef0d69 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/b2e7b4ed-7a0e-4d9a-8d69-5818fd5463b5 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/b2e7b4ed-7a0e-4d9a-8d69-5818fd5463b5', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 337s yielded = self.gen.send(value) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 337s from subprocess import PIPE, Popen 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 888, in get_code 337s File "", line 511, in _compile_bytecode 337s KeyboardInterrupt 337s __________________ SessionAPITest.test_create_with_kernel_id ___________________ 337s 337s self = 337s 337s def test_create_with_kernel_id(self): 337s # create a new kernel 337s r = self.request('POST', 'api/kernels') 337s r.raise_for_status() 337s kernel = r.json() 337s 337s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 337s self.assertEqual(resp.status_code, 201) 337s newsession = resp.json() 337s self.assertIn('id', newsession) 337s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 337s self.assertEqual(newsession['kernel']['id'], kernel['id']) 337s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 337s 337s sessions = self.sess_api.list().json() 337s > self.assertEqual(sessions, [newsession]) 337s E AssertionError: Lists differ: [{'id': 'b2e7b4ed-7a0e-4d9a-8d69-5818fd5463b5', 'p[553 chars]ne}}] != [{'id': 'ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b', 'p[279 chars]ne}}] 337s E 337s E First differing element 0: 337s E {'id': 'b2e7b4ed-7a0e-4d9a-8d69-5818fd5463b5', 'p[218 chars]: 0}} 337s E {'id': 'ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b', 'p[278 chars]one}} 337s E 337s E First list contains 1 additional elements. 337s E First extra element 1: 337s E {'id': 'ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '79d22db8-1643-4cc1-8b92-292520880fab', 'name': 'python3', 'last_activity': '2026-01-23T02:45:15.493168Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 337s E 337s E Diff is 830 characters long. Set self.maxDiff to None to see it. 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxyylu9ja/runtime/kernel-79d22db8-1643-4cc1-8b92-292520880fab.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49919 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50659 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 79d22db8-1643-4cc1-8b92-292520880fab, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.190000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.440000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.530000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.350000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 24a7055d-a518-41e5-8f99-2b81deef0d69 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 24a7055d-a518-41e5-8f99-2b81deef0d69 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/b2e7b4ed-7a0e-4d9a-8d69-5818fd5463b5 (::1) 0.620000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79d22db8-1643-4cc1-8b92-292520880fab 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79d22db8-1643-4cc1-8b92-292520880fab 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 337s yielded = self.gen.send(value) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 443, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 4.570000ms referer=None 337s _____________________ SessionAPITest.test_modify_kernel_id _____________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ---------------------------- Captured stderr setup ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 10, in 337s from typing import TYPE_CHECKING, Any 337s File "/usr/lib/python3.14/typing.py", line 2858, in 337s class SupportsInt(Protocol): 337s ...<6 lines>... 337s pass 337s File "/usr/lib/python3.14/typing.py", line 1994, in __new__ 337s return super().__new__(mcls, name, bases, namespace, **kwargs) 337s ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/abc.py", line 106, in __new__ 337s cls = super().__new__(mcls, name, bases, namespace, **kwargs) 337s File "/usr/lib/python3.14/typing.py", line 2132, in __init_subclass__ 337s if not cls.__dict__.get('_is_protocol', False): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^ 337s KeyboardInterrupt 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.500000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxyylu9ja/runtime/kernel-92e07ae8-8e96-48af-bf4f-d654785c2a7a.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33603 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49227 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 92e07ae8-8e96-48af-bf4f-d654785c2a7a, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.370000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 79d22db8-1643-4cc1-8b92-292520880fab 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 79d22db8-1643-4cc1-8b92-292520880fab 337s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 0.800000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.200000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.420000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92e07ae8-8e96-48af-bf4f-d654785c2a7a 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92e07ae8-8e96-48af-bf4f-d654785c2a7a 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 337s yielded = self.gen.send(value) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 5.060000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 337s from subprocess import PIPE, Popen 337s File "/usr/lib/python3.14/subprocess.py", line 46, in 337s import locale 337s File "/usr/lib/python3.14/locale.py", line 1774, in 337s __all__.append("LC_MESSAGES") 337s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^ 337s KeyboardInterrupt 337s ____________________ SessionAPITest.test_modify_kernel_name ____________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.560000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmpxyylu9ja/runtime/kernel-5c8b970e-339d-4e72-96b4-159b9f8791de.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55029 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:50709 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5c8b970e-339d-4e72-96b4-159b9f8791de, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmpxyylu9ja/notebooks/foo'} 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 92e07ae8-8e96-48af-bf4f-d654785c2a7a 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 92e07ae8-8e96-48af-bf4f-d654785c2a7a 337s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 13.800000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.730000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.130000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5c8b970e-339d-4e72-96b4-159b9f8791de 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c8b970e-339d-4e72-96b4-159b9f8791de 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 802, in run 337s yielded = self.gen.send(value) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 304, in shutdown_kernel 337s self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 323, in _async_shutdown_kernel 337s stopper = ensure_async(km.shutdown_kernel(now, restart)) 337s ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 171, in wrapped 337s return _runner_map[name].run(inner) 337s ~~~~~~~~~~~~~~~~~~~~~^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 128, in run 337s return fut.result(None) 337s ~~~~~~~~~~^^^^^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 450, in result 337s return self.__get_result() 337s ~~~~~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3.14/concurrent/futures/_base.py", line 395, in __get_result 337s raise self._exception 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/ab34b917-41ab-47cb-a2cd-8a9b31f0ed8b (::1) 4.700000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 337s import json 337s File "/usr/lib/python3.14/json/__init__.py", line 107, in 337s from .encoder import JSONEncoder 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 845, in get_code 337s File "", line 968, in path_stats 337s File "", line 152, in _path_stat 337s KeyboardInterrupt 337s ---------------------------- Captured log teardown ----------------------------- 337s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5c8b970e-339d-4e72-96b4-159b9f8791de 337s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 337s _______________________ AsyncSessionAPITest.test_create ________________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/4dd16bfa-2edd-4ddb-a832-0ac02fa91865 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log setup ------------------------------ 337s DEBUG NotebookApp:application.py:195 Searching ['/tmp/tmp_srefdfc/config', '/tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter', '/usr/etc/jupyter', '/tmp/tmp_srefdfc/etc/jupyter'] for config files 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_srefdfc/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /usr/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_config in /tmp/tmp_srefdfc/config 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_srefdfc/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /usr/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/autopkgtest.vwY63z/autopkgtest_tmp/home/.local/etc/jupyter 337s DEBUG NotebookApp:application.py:909 Looking for jupyter_notebook_config in /tmp/tmp_srefdfc/config 337s INFO NotebookApp:notebookapp.py:2327 Serving notebooks from local directory: /tmp/tmp_srefdfc/notebooks 337s INFO NotebookApp:notebookapp.py:2327 Jupyter Notebook 6.4.13 is running at: 337s INFO NotebookApp:notebookapp.py:2327 http://localhost:12341/a%40b/?token=... 337s INFO NotebookApp:notebookapp.py:2327 or http://127.0.0.1:12341/a%40b/?token=... 337s INFO NotebookApp:notebookapp.py:2328 Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 337s WARNING NotebookApp:handlers.py:612 Forbidden 337s WARNING NotebookApp:log.py:59 403 GET /a%40b/api/contents (::1) 0.400000ms referer=None 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.610000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_srefdfc/runtime/kernel-12b8e673-afe1-413d-a4ee-6ede1935806f.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:33607 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:52581 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 12b8e673-afe1-413d-a4ee-6ede1935806f, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_srefdfc/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.570000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions/4dd16bfa-2edd-4ddb-a832-0ac02fa91865 (::1) 1.290000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.260000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12b8e673-afe1-413d-a4ee-6ede1935806f 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12b8e673-afe1-413d-a4ee-6ede1935806f 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/4dd16bfa-2edd-4ddb-a832-0ac02fa91865 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/4dd16bfa-2edd-4ddb-a832-0ac02fa91865', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error/usr/lib/python3/dist-packages/_pytest/unraisableexception.py:33: RuntimeWarning: coroutine 'KernelManager._async_wait' was never awaited 337s gc.collect() 337s RuntimeWarning: Enable tracemalloc to get the object allocation traceback 337s 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 337s import json 337s File "/usr/lib/python3.14/json/__init__.py", line 106, in 337s from .decoder import JSONDecoder, JSONDecodeError 337s File "/usr/lib/python3.14/json/decoder.py", line 133, in 337s WHITESPACE = re.compile(r'[ \t\n\r]*', FLAGS) 337s File "/usr/lib/python3.14/re/__init__.py", line 289, in compile 337s return _compile(pattern, flags) 337s File "/usr/lib/python3.14/re/__init__.py", line 350, in _compile 337s p = _compiler.compile(pattern, flags) 337s File "/usr/lib/python3.14/re/_compiler.py", line 762, in compile 337s p = _parser.parse(p, flags) 337s File "/usr/lib/python3.14/re/_parser.py", line 973, in parse 337s p = _parse_sub(source, state, flags & SRE_FLAG_VERBOSE, 0) 337s File "/usr/lib/python3.14/re/_parser.py", line 460, in _parse_sub 337s itemsappend(_parse(source, state, verbose, nested + 1, 337s ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s not nested and not items)) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/re/_parser.py", line 512, in _parse 337s def _parse(source, state, verbose, nested, first=False): 337s 337s KeyboardInterrupt 337s _______________ AsyncSessionAPITest.test_create_console_session ________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/7326f219-c460-4771-b19a-f50bf6d02ea2 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_srefdfc/runtime/kernel-a98c3cf8-75da-4db2-ba4f-2bf2f6db5c85.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49127 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:41723 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: a98c3cf8-75da-4db2-ba4f-2bf2f6db5c85, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_srefdfc/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 13.760000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.490000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 12b8e673-afe1-413d-a4ee-6ede1935806f 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12b8e673-afe1-413d-a4ee-6ede1935806f 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/4dd16bfa-2edd-4ddb-a832-0ac02fa91865 (::1) 1.640000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a98c3cf8-75da-4db2-ba4f-2bf2f6db5c85 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a98c3cf8-75da-4db2-ba4f-2bf2f6db5c85 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/7326f219-c460-4771-b19a-f50bf6d02ea2 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/7326f219-c460-4771-b19a-f50bf6d02ea2', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/7326f219-c460-4771-b19a-f50bf6d02ea2 (::1) 4.440000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 337s import json 337s File "/usr/lib/python3.14/json/__init__.py", line 106, in 337s from .decoder import JSONDecoder, JSONDecodeError 337s File "/usr/lib/python3.14/json/decoder.py", line 5, in 337s from json import scanner 337s File "/usr/lib/python3.14/json/scanner.py", line 13, in 337s (re.VERBOSE | re.MULTILINE | re.DOTALL)) 337s ~~~~~~~~~~~^~~~~~~~~~~~~~ 337s File "/usr/lib/python3.14/enum.py", line 1591, in __or__ 337s return self.__class__(value | other_value) 337s ~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/enum.py", line 707, in __call__ 337s return cls.__new__(cls, value) 337s ~~~~~~~~~~~^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/enum.py", line 1177, in __new__ 337s result = cls._missing_(value) 337s File "/usr/lib/python3.14/enum.py", line 1505, in _missing_ 337s pseudo_member = cls._member_type_.__new__(cls, value) 337s KeyboardInterrupt 337s __________________ AsyncSessionAPITest.test_create_deprecated __________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/1c0f3a10-afac-4d27-b08e-f3bd1f56c7d5 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s WARNING NotebookApp:handlers.py:46 Sessions API changed, see updated swagger docs 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_srefdfc/runtime/kernel-d7e47765-069a-4bb9-8246-91ee148ceb94.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:35303 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:34163 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: d7e47765-069a-4bb9-8246-91ee148ceb94, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_srefdfc/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 14.280000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.440000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for a98c3cf8-75da-4db2-ba4f-2bf2f6db5c85 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a98c3cf8-75da-4db2-ba4f-2bf2f6db5c85 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/7326f219-c460-4771-b19a-f50bf6d02ea2 (::1) 1.310000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7e47765-069a-4bb9-8246-91ee148ceb94 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7e47765-069a-4bb9-8246-91ee148ceb94 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/1c0f3a10-afac-4d27-b08e-f3bd1f56c7d5 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/1c0f3a10-afac-4d27-b08e-f3bd1f56c7d5', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 611, in 337s class PureWindowsPath(PurePath): 337s ...<7 lines>... 337s __slots__ = () 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 617, in PureWindowsPath 337s import ntpath 337s File "/usr/lib/python3.14/ntpath.py", line 170, in 337s from nt import _path_splitroot_ex as splitroot 337s File "", line 1371, in _find_and_load 337s File "", line 1333, in _find_and_load_unlocked 337s File "", line 1267, in _find_spec 337s File "", line 1292, in find_spec 337s File "", line 1266, in _get_spec 337s File "", line 1365, in find_spec 337s File "", line 152, in _path_stat 337s KeyboardInterrupt 337s _________________ AsyncSessionAPITest.test_create_file_session _________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/275a6b37-699f-4b7a-8920-59399301bce9 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_srefdfc/runtime/kernel-4db975ef-34f3-44d2-9c3d-e8227f732403.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:40767 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:60293 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 4db975ef-34f3-44d2-9c3d-e8227f732403, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python', 'cwd': '/tmp/tmp_srefdfc/notebooks/foo'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 15.010000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.430000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for d7e47765-069a-4bb9-8246-91ee148ceb94 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7e47765-069a-4bb9-8246-91ee148ceb94 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/1c0f3a10-afac-4d27-b08e-f3bd1f56c7d5 (::1) 0.760000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4db975ef-34f3-44d2-9c3d-e8227f732403 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4db975ef-34f3-44d2-9c3d-e8227f732403 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/275a6b37-699f-4b7a-8920-59399301bce9 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/275a6b37-699f-4b7a-8920-59399301bce9', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 7, in 337s import json 337s File "/usr/lib/python3.14/json/__init__.py", line 106, in 337s from .decoder import JSONDecoder, JSONDecodeError 337s File "", line 1371, in _find_and_load 337s File "", line 1333, in _find_and_load_unlocked 337s File "", line 1267, in _find_spec 337s File "", line 1292, in find_spec 337s File "", line 1266, in _get_spec 337s File "", line 1369, in find_spec 337s File "", line 1412, in _fill_cache 337s KeyboardInterrupt 337s ________________ AsyncSessionAPITest.test_create_with_kernel_id ________________ 337s 337s self = 337s 337s def test_create_with_kernel_id(self): 337s # create a new kernel 337s r = self.request('POST', 'api/kernels') 337s r.raise_for_status() 337s kernel = r.json() 337s 337s resp = self.sess_api.create('foo/nb1.ipynb', kernel_id=kernel['id']) 337s self.assertEqual(resp.status_code, 201) 337s newsession = resp.json() 337s self.assertIn('id', newsession) 337s self.assertEqual(newsession['path'], 'foo/nb1.ipynb') 337s self.assertEqual(newsession['kernel']['id'], kernel['id']) 337s self.assertEqual(resp.headers['Location'], f'{self.url_prefix}api/sessions/{newsession["id"]}') 337s 337s sessions = self.sess_api.list().json() 337s > self.assertEqual(sessions, [newsession]) 337s E AssertionError: Lists differ: [{'id': '275a6b37-699f-4b7a-8920-59399301bce9', 'p[553 chars]ne}}] != [{'id': 'a8f1ce6c-798b-4856-9844-d7f591dc4bd0', 'p[279 chars]ne}}] 337s E 337s E First differing element 0: 337s E {'id': '275a6b37-699f-4b7a-8920-59399301bce9', 'p[218 chars]: 0}} 337s E {'id': 'a8f1ce6c-798b-4856-9844-d7f591dc4bd0', 'p[278 chars]one}} 337s E 337s E First list contains 1 additional elements. 337s E First extra element 1: 337s E {'id': 'a8f1ce6c-798b-4856-9844-d7f591dc4bd0', 'path': 'foo/nb1.ipynb', 'name': None, 'type': 'notebook', 'kernel': {'id': '5fa36447-b6dd-40bf-87ad-d501779904d4', 'name': 'python3', 'last_activity': '2026-01-23T02:45:15.796704Z', 'execution_state': 'starting', 'connections': 0}, 'notebook': {'path': 'foo/nb1.ipynb', 'name': None}} 337s E 337s E Diff is 830 characters long. Set self.maxDiff to None to see it. 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:178: AssertionError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_srefdfc/runtime/kernel-5fa36447-b6dd-40bf-87ad-d501779904d4.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:49273 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42051 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5fa36447-b6dd-40bf-87ad-d501779904d4, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 14.080000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.190000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.380000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.180000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 4db975ef-34f3-44d2-9c3d-e8227f732403 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4db975ef-34f3-44d2-9c3d-e8227f732403 337s DEBUG NotebookApp:log.py:59 204 DELETE /a%40b/api/sessions/275a6b37-699f-4b7a-8920-59399301bce9 (::1) 0.750000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fa36447-b6dd-40bf-87ad-d501779904d4 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fa36447-b6dd-40bf-87ad-d501779904d4 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 4.170000ms referer=None 337s __________________ AsyncSessionAPITest.test_modify_kernel_id ___________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ---------------------------- Captured stderr setup ----------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 337s from subprocess import PIPE, Popen 337s File "/usr/lib/python3.14/subprocess.py", line 49, in 337s import signal 337s File "/usr/lib/python3.14/signal.py", line 7, in 337s _IntEnum._convert_( 337s ~~~~~~~~~~~~~~~~~~^ 337s 'Signals', __name__, 337s ^^^^^^^^^^^^^^^^^^^^ 337s ...<2 lines>... 337s and (name.startswith('SIG') and not name.startswith('SIG_')) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s or name.startswith('CTRL_')) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/enum.py", line 909, in _convert_ 337s cls = _simple_enum(etype=cls, boundary=boundary or KEEP)(tmp_cls) 337s File "/usr/lib/python3.14/enum.py", line 1895, in convert_class 337s setattr(enum_class, name, member) 337s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/enum.py", line 810, in __setattr__ 337s def __setattr__(cls, name, value): 337s 337s KeyboardInterrupt 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 1.240000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_srefdfc/runtime/kernel-5cf3ef03-e785-40db-9d13-ff76e07f6bd0.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:44653 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:42895 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: 5cf3ef03-e785-40db-9d13-ff76e07f6bd0, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3'} 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/kernels (::1) 13.050000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5fa36447-b6dd-40bf-87ad-d501779904d4 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fa36447-b6dd-40bf-87ad-d501779904d4 337s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 1.730000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 0.390000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 1.320000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5cf3ef03-e785-40db-9d13-ff76e07f6bd0 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5cf3ef03-e785-40db-9d13-ff76e07f6bd0 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s ERROR NotebookApp:log.py:55 { 337s "Host": "localhost:12341", 337s "Accept": "*/*", 337s "User-Agent": "python-requests/2.32.5" 337s } 337s ERROR NotebookApp:log.py:59 500 DELETE /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 4.240000ms referer=None 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 16, in 337s from ipykernel import kernelapp as app 337s File "/usr/lib/python3/dist-packages/ipykernel/__init__.py", line 7, in 337s from .connect import * # noqa: F403 337s ^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel/connect.py", line 9, in 337s from subprocess import PIPE, Popen 337s File "/usr/lib/python3.14/subprocess.py", line 51, in 337s import threading 337s File "", line 1371, in _find_and_load 337s File "", line 1342, in _find_and_load_unlocked 337s File "", line 938, in _load_unlocked 337s File "", line 755, in exec_module 337s File "", line 888, in get_code 337s File "", line 511, in _compile_bytecode 337s KeyboardInterrupt 337s _________________ AsyncSessionAPITest.test_modify_kernel_name __________________ 337s 337s @self.addCleanup 337s def cleanup_sessions(): 337s for session in self.sess_api.list().json(): 337s > self.sess_api.delete(session['id']) 337s 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:111: 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:85: in delete 337s return self._req('DELETE', id) 337s ^^^^^^^^^^^^^^^^^^^^^^^ 337s /usr/lib/python3/dist-packages/notebook/services/sessions/tests/test_sessions_api.py:40: in _req 337s response.raise_for_status() 337s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 337s 337s self = 337s 337s def raise_for_status(self): 337s """Raises :class:`HTTPError`, if one occurred.""" 337s 337s http_error_msg = "" 337s if isinstance(self.reason, bytes): 337s # We attempt to decode utf-8 first because some servers 337s # choose to localize their reason strings. If the string 337s # isn't utf-8, we fall back to iso-8859-1 for all other 337s # encodings. (See PR #3538) 337s try: 337s reason = self.reason.decode("utf-8") 337s except UnicodeDecodeError: 337s reason = self.reason.decode("iso-8859-1") 337s else: 337s reason = self.reason 337s 337s if 400 <= self.status_code < 500: 337s http_error_msg = ( 337s f"{self.status_code} Client Error: {reason} for url: {self.url}" 337s ) 337s 337s elif 500 <= self.status_code < 600: 337s http_error_msg = ( 337s f"{self.status_code} Server Error: {reason} for url: {self.url}" 337s ) 337s 337s if http_error_msg: 337s > raise HTTPError(http_error_msg, response=self) 337s E requests.exceptions.HTTPError: 500 Server Error: Unhandled error for url: http://localhost:12341/a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 337s 337s /usr/lib/python3/dist-packages/requests/models.py:1026: HTTPError 337s ------------------------------ Captured log call ------------------------------- 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 201 POST /a%40b/api/sessions (::1) 0.610000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:factory.py:92 Instantiating kernel 'Python 3 (ipykernel)' with kernel provisioner: local-provisioner 337s DEBUG NotebookApp:manager.py:439 Starting kernel: ['/usr/bin/python3', '-Xfrozen_modules=off', '-m', 'ipykernel_launcher', '-f', '/tmp/tmp_srefdfc/runtime/kernel-e31657c1-e489-4223-a8be-ddb9bb194246.json'] 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:55957 337s DEBUG NotebookApp:connect.py:654 Connecting to: tcp://127.0.0.1:58487 337s INFO NotebookApp:kernelmanager.py:179 Kernel started: e31657c1-e489-4223-a8be-ddb9bb194246, name: python3 337s DEBUG NotebookApp:kernelmanager.py:180 Kernel args: {'kernel_name': 'python3', 'cwd': '/tmp/tmp_srefdfc/notebooks/foo'} 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for 5cf3ef03-e785-40db-9d13-ff76e07f6bd0 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5cf3ef03-e785-40db-9d13-ff76e07f6bd0 337s DEBUG NotebookApp:log.py:59 200 PATCH /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 13.920000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/kernels (::1) 1.160000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:log.py:59 200 GET /a%40b/api/sessions (::1) 0.410000ms 337s DEBUG NotebookApp:login.py:213 Accepting token-authenticated connection from ::1 337s DEBUG NotebookApp:kernelmanager.py:272 Clearing buffer for e31657c1-e489-4223-a8be-ddb9bb194246 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e31657c1-e489-4223-a8be-ddb9bb194246 337s ERROR NotebookApp:manager.py:96 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:multikernelmanager.py:247 Timeout should be used inside a task 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s ERROR NotebookApp:web.py:1945 Uncaught exception DELETE /a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0 (::1) 337s HTTPServerRequest(protocol='http', host='localhost:12341', method='DELETE', uri='/a%40b/api/sessions/a8f1ce6c-798b-4856-9844-d7f591dc4bd0', version='HTTP/1.1', remote_ip='::1') 337s Traceback (most recent call last): 337s File "/usr/lib/python3/dist-packages/tornado/web.py", line 1859, in _execute 337s result = await result 337s ^^^^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 362, in __wakeup 337s future.result() 337s ~~~~~~~~~~~~~^^ 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/handlers.py", line 164, in delete 337s yield maybe_future(sm.delete_session(session_id)) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 796, in run 337s yielded = self.gen.throw(exc) 337s File "/usr/lib/python3/dist-packages/notebook/services/sessions/sessionmanager.py", line 287, in delete_session 337s yield maybe_future(self.kernel_manager.shutdown_kernel(session['kernel']['id'])) 337s File "/usr/lib/python3/dist-packages/tornado/gen.py", line 783, in run 337s value = future.result() 337s File "/usr/lib/python3.14/asyncio/futures.py", line 208, in result 337s raise self._exception.with_traceback(self._exception_tb) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 289, in __step_run_and_handle_result 337s result = coro.send(None) 337s File "/usr/lib/python3/dist-packages/notebook/services/kernels/kernelmanager.py", line 517, in shutdown_kernel 337s await self.pinned_superclass.shutdown_kernel(self, kernel_id, now=now, restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 331, in _async_shutdown_kernel 337s raise km.ready.exception() # type: ignore[misc] 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/multikernelmanager.py", line 243, in _remove_kernel_when_ready 337s await kernel_awaitable 337s File "/usr/lib/python3/dist-packages/jupyter_core/utils/__init__.py", line 214, in ensure_async 337s result = await obj 337s ^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 97, in wrapper 337s raise e 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 88, in wrapper 337s out = await method(self, *args, **kwargs) 337s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 552, in _async_shutdown_kernel 337s await self._async_finish_shutdown(restart=restart) 337s File "/usr/lib/python3/dist-packages/jupyter_client/manager.py", line 475, in _async_finish_shutdown 337s await asyncio.wait_for( 337s self._async_wait(pollinterval=pollinterval), timeout=waittime / 2 337s ) 337s File "/usr/lib/python3.14/asyncio/tasks.py", line 487, in wait_for 337s async with timeouts.timeout(timeout): 337s ~~~~~~~~~~~~~~~~^^^^^^^^^ 337s File "/usr/lib/python3.14/asyncio/timeouts.py", line 88, in __aenter__ 337s raise RuntimeError("Timeout should be used inside a task") 337s RuntimeError: Timeout should be used inside a task 337s WARNING NotebookApp:handlers.py:612 Unhandled error 337s --------------------------- Captured stderr teardown --------------------------- 337s Traceback (most recent call last): 337s File "/usr/lib/python3.14/runpy.py", line 198, in _run_module_as_main 337s return _run_code(code, main_globals, None, 337s "__main__", mod_spec) 337s File "/usr/lib/python3.14/runpy.py", line 88, in _run_code 337s exec(code, run_globals) 337s ~~~~^^^^^^^^^^^^^^^^^^^ 337s File "/usr/lib/python3/dist-packages/ipykernel_launcher.py", line 8, in 337s from pathlib import Path 337s File "/usr/lib/python3.14/pathlib/__init__.py", line 24, in 337s import grp 337s File "", line 1360, in _find_and_load 337s KeyboardInterrupt 337s ---------------------------- Captured log teardown ----------------------------- 337s INFO NotebookApp:notebookapp.py:2164 Shutting down 1 kernel 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: d7e47765-069a-4bb9-8246-91ee148ceb94 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: a98c3cf8-75da-4db2-ba4f-2bf2f6db5c85 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 12b8e673-afe1-413d-a4ee-6ede1935806f 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 4db975ef-34f3-44d2-9c3d-e8227f732403 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: e31657c1-e489-4223-a8be-ddb9bb194246 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5cf3ef03-e785-40db-9d13-ff76e07f6bd0 337s INFO NotebookApp:multikernelmanager.py:305 Kernel shutdown: 5fa36447-b6dd-40bf-87ad-d501779904d4 337s INFO NotebookApp:notebookapp.py:2179 Shutting down 0 terminals 337s =============================== warnings summary =============================== 337s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 337s ../../../usr/lib/python3/dist-packages/notebook/utils.py:280 337s /usr/lib/python3/dist-packages/notebook/utils.py:280: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead. 337s return LooseVersion(v) >= LooseVersion(check) 337s 337s ../../../usr/lib/python3/dist-packages/notebook/_tz.py:29: 1 warning 337s services/kernels/tests/test_kernels_api.py: 65 warnings 337s services/sessions/tests/test_sessions_api.py: 88 warnings 337s /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). 337s dt = unaware(*args, **kwargs) 337s 337s ../../../usr/lib/python3/dist-packages/notebook/tests/test_notebookapp_integration.py:14 337s /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 337s pytestmark = pytest.mark.integration_tests 337s 337s services/kernels/tests/test_kernels_api.py: 6 warnings 337s services/sessions/tests/test_sessions_api.py: 6 warnings 337s /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 337s policy = events.get_event_loop_policy() 337s 337s services/kernels/tests/test_kernels_api.py: 24 warnings 337s services/sessions/tests/test_sessions_api.py: 19 warnings 337s /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 337s loop = events.get_event_loop_policy().get_event_loop() 337s 337s services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 337s /usr/lib/python3/dist-packages/notebook/services/kernels/tests/test_kernels_api.py:67: DeprecationWarning: make_current is deprecated; start the event loop first 337s loop.make_current() 337s 337s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 337s =========================== short test summary info ============================ 337s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_default_kernel 337s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_kernel_handler 337s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 337s FAILED services/kernels/tests/test_kernels_api.py::KernelAPITest::test_no_kernels 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_connections 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_default_kernel 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_kernel_handler 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 337s FAILED services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_no_kernels 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_console_session 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_deprecated 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_file_session 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_id 337s FAILED services/sessions/tests/test_sessions_api.py::SessionAPITest::test_modify_kernel_name 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_console_session 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_deprecated 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_file_session 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_id 337s FAILED services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_modify_kernel_name 337s ERROR services/kernels/tests/test_kernels_api.py::KernelAPITest::test_main_kernel_handler 337s ERROR services/kernels/tests/test_kernels_api.py::AsyncKernelAPITest::test_main_kernel_handler 337s ERROR services/sessions/tests/test_sessions_api.py::SessionAPITest::test_create_with_kernel_id 337s ERROR services/sessions/tests/test_sessions_api.py::AsyncSessionAPITest::test_create_with_kernel_id 337s ========== 23 failed, 307 deselected, 213 warnings, 4 errors in 3.19s ========== 337s *** END OF RUN 5: NOT ALL TESTS HAVE YET PASSED/XFAILED *** 337s *** SOME TESTS FAILED/ERRORED EVERY RUN, ABORTING *** 337s autopkgtest [02:45:17]: test pytest: -----------------------] 338s pytest FAIL non-zero exit status 1 338s autopkgtest [02:45:18]: test pytest: - - - - - - - - - - results - - - - - - - - - - 338s autopkgtest [02:45:18]: @@@@@@@@@@@@@@@@@@@@ summary 338s pytest FAIL non-zero exit status 1