0s autopkgtest [11:35:52]: starting date and time: 2025-11-17 11:35:52+0000 0s autopkgtest [11:35:52]: git checkout: 508d4a25 a-v-ssh wait_for_ssh: demote "ssh connection failed" to a debug message 0s autopkgtest [11:35:52]: host juju-7f2275-prod-proposed-migration-environment-9; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.a1atdv7u/out --timeout-copy=6000 --setup-commands 'ln -s /dev/null /etc/systemd/system/bluetooth.service; printf "http_proxy=http://squid.internal:3128\nhttps_proxy=http://squid.internal:3128\nno_proxy=127.0.0.1,127.0.1.1,localhost,localdomain,internal,login.ubuntu.com,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com,radosgw.ps5.canonical.com\n" >> /etc/environment' --apt-pocket=proposed=src:python-pytest-asyncio,src:pytest,src:python3-defaults --apt-upgrade ipykernel --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python-pytest-asyncio/1.2.0-1 pytest/8.4.2-1 python3-defaults/3.13.7-2' -- lxd -r lxd-armhf-10.145.243.79 lxd-armhf-10.145.243.79:autopkgtest/ubuntu/resolute/armhf 21s autopkgtest [11:36:13]: testbed dpkg architecture: armhf 24s autopkgtest [11:36:15]: testbed apt version: 3.1.11 27s autopkgtest [11:36:19]: @@@@@@@@@@@@@@@@@@@@ test bed setup 29s autopkgtest [11:36:21]: testbed release detected to be: None 37s autopkgtest [11:36:29]: updating testbed package index (apt update) 39s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 39s Get:2 http://ftpmaster.internal/ubuntu resolute InRelease [87.8 kB] 39s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 39s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 39s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.1 kB] 39s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [868 kB] 39s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 39s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 39s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf Packages [138 kB] 40s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted armhf Packages [940 B] 40s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf Packages [536 kB] 40s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse armhf Packages [9684 B] 40s Get:13 http://ftpmaster.internal/ubuntu resolute/main Sources [1416 kB] 40s Get:14 http://ftpmaster.internal/ubuntu resolute/universe Sources [21.3 MB] 40s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf Packages [1369 kB] 40s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf Packages [15.2 MB] 44s Fetched 41.1 MB in 5s (8143 kB/s) 45s Reading package lists... 51s autopkgtest [11:36:43]: upgrading testbed (apt dist-upgrade and autopurge) 52s Reading package lists... 53s Building dependency tree... 53s Reading state information... 53s Calculating upgrade... 53s The following packages will be upgraded: 53s libpython3-stdlib python3 python3-minimal usbutils 54s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 54s Need to get 140 kB of archives. 54s After this operation, 0 B of additional disk space will be used. 54s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-minimal armhf 3.13.7-2 [27.8 kB] 54s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3 armhf 3.13.7-2 [23.9 kB] 54s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf libpython3-stdlib armhf 3.13.7-2 [10.6 kB] 54s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf usbutils armhf 1:019-1 [77.7 kB] 54s Fetched 140 kB in 0s (338 kB/s) 55s (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 ... 65904 files and directories currently installed.) 55s Preparing to unpack .../python3-minimal_3.13.7-2_armhf.deb ... 55s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 55s Setting up python3-minimal (3.13.7-2) ... 55s (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 ... 65904 files and directories currently installed.) 55s Preparing to unpack .../python3_3.13.7-2_armhf.deb ... 55s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 55s Preparing to unpack .../libpython3-stdlib_3.13.7-2_armhf.deb ... 55s Unpacking libpython3-stdlib:armhf (3.13.7-2) over (3.13.7-1) ... 55s Preparing to unpack .../usbutils_1%3a019-1_armhf.deb ... 55s Unpacking usbutils (1:019-1) over (1:018-2) ... 55s Setting up usbutils (1:019-1) ... 55s Setting up libpython3-stdlib:armhf (3.13.7-2) ... 55s Setting up python3 (3.13.7-2) ... 55s Processing triggers for man-db (2.13.1-1) ... 58s Reading package lists... 58s Building dependency tree... 58s Reading state information... 59s Solving dependencies... 59s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 61s autopkgtest [11:36:53]: rebooting testbed after setup commands that affected boot 101s autopkgtest [11:37:33]: testbed running kernel: Linux 6.8.0-86-generic #87~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 29 09:26:46 UTC 2 126s autopkgtest [11:37:58]: @@@@@@@@@@@@@@@@@@@@ apt-source ipykernel 136s Get:1 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (dsc) [2800 B] 136s Get:2 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (tar) [165 kB] 136s Get:3 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (diff) [8544 B] 137s gpgv: Signature made Mon Dec 16 01:06:00 2024 UTC 137s gpgv: using RSA key AC0A4FF12611B6FCCF01C111393587D97D86500B 137s gpgv: Can't check signature: No public key 137s dpkg-source: warning: cannot verify inline signature for ./ipykernel_6.29.5-2.dsc: no acceptable signature found 137s autopkgtest [11:38:09]: testing package ipykernel version 6.29.5-2 139s autopkgtest [11:38:11]: build not needed 141s autopkgtest [11:38:13]: test pytest: preparing testbed 143s Reading package lists... 143s Building dependency tree... 143s Reading state information... 144s Solving dependencies... 144s The following NEW packages will be installed: 144s gdb libbabeltrace1 libc6-dbg libdebuginfod-common libdebuginfod1t64 144s libdw1t64 libnorm1t64 libpgm-5.3-0t64 libpython3.13 libpython3.14-minimal 144s libpython3.14-stdlib libsodium23 libsource-highlight-common 144s libsource-highlight4t64 libzmq5 python3-all python3-asttokens 144s python3-async-generator python3-comm python3-coverage python3-debugpy 144s python3-decorator python3-executing python3-flaky python3-iniconfig 144s python3-ipykernel python3-ipyparallel python3-ipython python3-jedi 144s python3-jupyter-client python3-jupyter-core python3-matplotlib-inline 144s python3-nest-asyncio python3-outcome python3-parso python3-platformdirs 144s python3-pluggy python3-prompt-toolkit python3-psutil python3-pure-eval 144s python3-pytest python3-pytest-asyncio python3-pytest-timeout python3-sniffio 144s python3-sortedcontainers python3-stack-data python3-tornado python3-tqdm 144s python3-traitlets python3-trio python3-typeshed python3-wcwidth python3-zmq 144s python3.14 python3.14-minimal 144s 0 upgraded, 55 newly installed, 0 to remove and 0 not upgraded. 144s Need to get 26.5 MB of archives. 144s After this operation, 93.5 MB of additional disk space will be used. 144s Get:1 http://ftpmaster.internal/ubuntu resolute/main armhf libdebuginfod-common all 0.194-1 [15.1 kB] 144s Get:2 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-minimal armhf 3.14.0-4 [892 kB] 145s Get:3 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14-minimal armhf 3.14.0-4 [2146 kB] 145s Get:4 http://ftpmaster.internal/ubuntu resolute/main armhf libdw1t64 armhf 0.194-1 [254 kB] 145s Get:5 http://ftpmaster.internal/ubuntu resolute/main armhf libbabeltrace1 armhf 1.5.11-4build3 [155 kB] 145s Get:6 http://ftpmaster.internal/ubuntu resolute/main armhf libdebuginfod1t64 armhf 0.194-1 [18.8 kB] 145s Get:7 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.13 armhf 3.13.9-1 [2123 kB] 145s Get:8 http://ftpmaster.internal/ubuntu resolute/main armhf libsource-highlight-common all 3.1.9-4.3build1 [64.2 kB] 145s Get:9 http://ftpmaster.internal/ubuntu resolute/main armhf libsource-highlight4t64 armhf 3.1.9-4.3build1 [306 kB] 145s Get:10 http://ftpmaster.internal/ubuntu resolute/main armhf libc6-dbg armhf 2.42-2ubuntu2 [4514 kB] 145s Get:11 http://ftpmaster.internal/ubuntu resolute/main armhf gdb armhf 16.3-1ubuntu2 [3667 kB] 145s Get:12 http://ftpmaster.internal/ubuntu resolute/universe armhf libnorm1t64 armhf 1.5.9+dfsg-4 [210 kB] 145s Get:13 http://ftpmaster.internal/ubuntu resolute/universe armhf libpgm-5.3-0t64 armhf 5.3.128~dfsg-2.1build1 [171 kB] 145s Get:14 http://ftpmaster.internal/ubuntu resolute/main armhf libpython3.14-stdlib armhf 3.14.0-4 [2270 kB] 145s Get:15 http://ftpmaster.internal/ubuntu resolute/main armhf libsodium23 armhf 1.0.18-1build3 [139 kB] 145s Get:16 http://ftpmaster.internal/ubuntu resolute/universe armhf libzmq5 armhf 4.3.5-1build2 [262 kB] 145s Get:17 http://ftpmaster.internal/ubuntu resolute/main armhf python3.14 armhf 3.14.0-4 [805 kB] 145s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/main armhf python3-all armhf 3.13.7-2 [890 B] 145s Get:19 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-asttokens all 3.0.0-2 [20.5 kB] 145s Get:20 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-async-generator all 1.10-7 [18.1 kB] 145s Get:21 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-traitlets all 5.14.3+really5.14.3-1 [71.5 kB] 145s Get:22 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-comm all 0.2.1-1 [7016 B] 145s Get:23 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-coverage armhf 7.8.2+dfsg1-1 [156 kB] 145s Get:24 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-debugpy armhf 1.8.12+ds-1ubuntu1 [747 kB] 145s Get:25 http://ftpmaster.internal/ubuntu resolute/main armhf python3-decorator all 5.2.1-2 [28.1 kB] 145s Get:26 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-executing all 2.2.0-0.2 [25.0 kB] 145s Get:27 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-flaky all 3.8.1-3 [16.8 kB] 145s Get:28 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-iniconfig all 2.1.0-1 [6840 B] 145s Get:29 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-parso all 0.8.5-1 [68.0 kB] 145s Get:30 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 145s Get:31 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-jedi all 0.19.1+ds1-1 [693 kB] 145s Get:32 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-matplotlib-inline all 0.1.7-1 [9186 B] 145s Get:33 http://ftpmaster.internal/ubuntu resolute/main armhf python3-wcwidth all 0.2.13+dfsg1-1 [26.3 kB] 145s Get:34 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-prompt-toolkit all 3.0.52-1 [258 kB] 145s Get:35 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pure-eval all 0.2.3-1 [11.4 kB] 145s Get:36 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-stack-data all 0.6.3-1 [22.0 kB] 146s Get:37 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-ipython all 8.35.0-2 [575 kB] 146s Get:38 http://ftpmaster.internal/ubuntu resolute/main armhf python3-platformdirs all 4.3.7-1 [16.9 kB] 146s Get:39 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-jupyter-core all 5.7.2-5 [28.1 kB] 146s Get:40 http://ftpmaster.internal/ubuntu resolute/main armhf python3-psutil armhf 7.1.0-1ubuntu1 [189 kB] 146s Get:41 http://ftpmaster.internal/ubuntu resolute/main armhf python3-tornado armhf 6.5.2-3 [304 kB] 146s Get:42 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-zmq armhf 27.1.0-1 [223 kB] 146s Get:43 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-jupyter-client all 8.6.3-3 [78.4 kB] 146s Get:44 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-nest-asyncio all 1.5.4-1 [6256 B] 146s Get:45 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-ipykernel all 6.29.5-2 [82.7 kB] 146s Get:46 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-tqdm all 4.67.1-5 [92.1 kB] 146s Get:47 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-ipyparallel all 8.8.0-5 [2506 kB] 146s Get:48 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-outcome all 1.2.0-2 [6208 B] 146s Get:49 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pluggy all 1.6.0-1 [21.0 kB] 146s Get:50 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf python3-pytest all 8.4.2-1 [268 kB] 146s Get:51 http://ftpmaster.internal/ubuntu resolute-proposed/universe armhf python3-pytest-asyncio all 1.2.0-1 [13.6 kB] 146s Get:52 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-pytest-timeout all 2.3.1-2 [22.2 kB] 146s Get:53 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-sniffio all 1.3.1-1 [7262 B] 146s Get:54 http://ftpmaster.internal/ubuntu resolute/main armhf python3-sortedcontainers all 2.4.0-2 [27.6 kB] 146s Get:55 http://ftpmaster.internal/ubuntu resolute/universe armhf python3-trio all 0.29.0-1 [330 kB] 146s Preconfiguring packages ... 146s Fetched 26.5 MB in 2s (16.9 MB/s) 146s Selecting previously unselected package libdebuginfod-common. 146s (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 ... 65904 files and directories currently installed.) 146s Preparing to unpack .../00-libdebuginfod-common_0.194-1_all.deb ... 146s Unpacking libdebuginfod-common (0.194-1) ... 146s Selecting previously unselected package libpython3.14-minimal:armhf. 146s Preparing to unpack .../01-libpython3.14-minimal_3.14.0-4_armhf.deb ... 146s Unpacking libpython3.14-minimal:armhf (3.14.0-4) ... 146s Selecting previously unselected package python3.14-minimal. 147s Preparing to unpack .../02-python3.14-minimal_3.14.0-4_armhf.deb ... 147s Unpacking python3.14-minimal (3.14.0-4) ... 147s Selecting previously unselected package libdw1t64:armhf. 147s Preparing to unpack .../03-libdw1t64_0.194-1_armhf.deb ... 147s Unpacking libdw1t64:armhf (0.194-1) ... 147s Selecting previously unselected package libbabeltrace1:armhf. 147s Preparing to unpack .../04-libbabeltrace1_1.5.11-4build3_armhf.deb ... 147s Unpacking libbabeltrace1:armhf (1.5.11-4build3) ... 147s Selecting previously unselected package libdebuginfod1t64:armhf. 147s Preparing to unpack .../05-libdebuginfod1t64_0.194-1_armhf.deb ... 147s Unpacking libdebuginfod1t64:armhf (0.194-1) ... 147s Selecting previously unselected package libpython3.13:armhf. 147s Preparing to unpack .../06-libpython3.13_3.13.9-1_armhf.deb ... 147s Unpacking libpython3.13:armhf (3.13.9-1) ... 147s Selecting previously unselected package libsource-highlight-common. 147s Preparing to unpack .../07-libsource-highlight-common_3.1.9-4.3build1_all.deb ... 147s Unpacking libsource-highlight-common (3.1.9-4.3build1) ... 147s Selecting previously unselected package libsource-highlight4t64:armhf. 147s Preparing to unpack .../08-libsource-highlight4t64_3.1.9-4.3build1_armhf.deb ... 147s Unpacking libsource-highlight4t64:armhf (3.1.9-4.3build1) ... 147s Selecting previously unselected package libc6-dbg:armhf. 147s Preparing to unpack .../09-libc6-dbg_2.42-2ubuntu2_armhf.deb ... 147s Unpacking libc6-dbg:armhf (2.42-2ubuntu2) ... 147s Selecting previously unselected package gdb. 147s Preparing to unpack .../10-gdb_16.3-1ubuntu2_armhf.deb ... 147s Unpacking gdb (16.3-1ubuntu2) ... 147s Selecting previously unselected package libnorm1t64:armhf. 147s Preparing to unpack .../11-libnorm1t64_1.5.9+dfsg-4_armhf.deb ... 147s Unpacking libnorm1t64:armhf (1.5.9+dfsg-4) ... 147s Selecting previously unselected package libpgm-5.3-0t64:armhf. 147s Preparing to unpack .../12-libpgm-5.3-0t64_5.3.128~dfsg-2.1build1_armhf.deb ... 147s Unpacking libpgm-5.3-0t64:armhf (5.3.128~dfsg-2.1build1) ... 147s Selecting previously unselected package libpython3.14-stdlib:armhf. 147s Preparing to unpack .../13-libpython3.14-stdlib_3.14.0-4_armhf.deb ... 147s Unpacking libpython3.14-stdlib:armhf (3.14.0-4) ... 147s Selecting previously unselected package libsodium23:armhf. 147s Preparing to unpack .../14-libsodium23_1.0.18-1build3_armhf.deb ... 147s Unpacking libsodium23:armhf (1.0.18-1build3) ... 147s Selecting previously unselected package libzmq5:armhf. 147s Preparing to unpack .../15-libzmq5_4.3.5-1build2_armhf.deb ... 147s Unpacking libzmq5:armhf (4.3.5-1build2) ... 147s Selecting previously unselected package python3.14. 147s Preparing to unpack .../16-python3.14_3.14.0-4_armhf.deb ... 147s Unpacking python3.14 (3.14.0-4) ... 147s Selecting previously unselected package python3-all. 147s Preparing to unpack .../17-python3-all_3.13.7-2_armhf.deb ... 147s Unpacking python3-all (3.13.7-2) ... 148s Selecting previously unselected package python3-asttokens. 148s Preparing to unpack .../18-python3-asttokens_3.0.0-2_all.deb ... 148s Unpacking python3-asttokens (3.0.0-2) ... 148s Selecting previously unselected package python3-async-generator. 148s Preparing to unpack .../19-python3-async-generator_1.10-7_all.deb ... 148s Unpacking python3-async-generator (1.10-7) ... 148s Selecting previously unselected package python3-traitlets. 148s Preparing to unpack .../20-python3-traitlets_5.14.3+really5.14.3-1_all.deb ... 148s Unpacking python3-traitlets (5.14.3+really5.14.3-1) ... 148s Selecting previously unselected package python3-comm. 148s Preparing to unpack .../21-python3-comm_0.2.1-1_all.deb ... 148s Unpacking python3-comm (0.2.1-1) ... 148s Selecting previously unselected package python3-coverage. 148s Preparing to unpack .../22-python3-coverage_7.8.2+dfsg1-1_armhf.deb ... 148s Unpacking python3-coverage (7.8.2+dfsg1-1) ... 148s Selecting previously unselected package python3-debugpy. 148s Preparing to unpack .../23-python3-debugpy_1.8.12+ds-1ubuntu1_armhf.deb ... 148s Unpacking python3-debugpy (1.8.12+ds-1ubuntu1) ... 148s Selecting previously unselected package python3-decorator. 148s Preparing to unpack .../24-python3-decorator_5.2.1-2_all.deb ... 148s Unpacking python3-decorator (5.2.1-2) ... 148s Selecting previously unselected package python3-executing. 148s Preparing to unpack .../25-python3-executing_2.2.0-0.2_all.deb ... 148s Unpacking python3-executing (2.2.0-0.2) ... 148s Selecting previously unselected package python3-flaky. 148s Preparing to unpack .../26-python3-flaky_3.8.1-3_all.deb ... 148s Unpacking python3-flaky (3.8.1-3) ... 148s Selecting previously unselected package python3-iniconfig. 148s Preparing to unpack .../27-python3-iniconfig_2.1.0-1_all.deb ... 148s Unpacking python3-iniconfig (2.1.0-1) ... 148s Selecting previously unselected package python3-parso. 148s Preparing to unpack .../28-python3-parso_0.8.5-1_all.deb ... 148s Unpacking python3-parso (0.8.5-1) ... 148s Selecting previously unselected package python3-typeshed. 148s Preparing to unpack .../29-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 148s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 149s Selecting previously unselected package python3-jedi. 149s Preparing to unpack .../30-python3-jedi_0.19.1+ds1-1_all.deb ... 149s Unpacking python3-jedi (0.19.1+ds1-1) ... 149s Selecting previously unselected package python3-matplotlib-inline. 149s Preparing to unpack .../31-python3-matplotlib-inline_0.1.7-1_all.deb ... 149s Unpacking python3-matplotlib-inline (0.1.7-1) ... 149s Selecting previously unselected package python3-wcwidth. 149s Preparing to unpack .../32-python3-wcwidth_0.2.13+dfsg1-1_all.deb ... 149s Unpacking python3-wcwidth (0.2.13+dfsg1-1) ... 149s Selecting previously unselected package python3-prompt-toolkit. 149s Preparing to unpack .../33-python3-prompt-toolkit_3.0.52-1_all.deb ... 149s Unpacking python3-prompt-toolkit (3.0.52-1) ... 149s Selecting previously unselected package python3-pure-eval. 149s Preparing to unpack .../34-python3-pure-eval_0.2.3-1_all.deb ... 149s Unpacking python3-pure-eval (0.2.3-1) ... 149s Selecting previously unselected package python3-stack-data. 149s Preparing to unpack .../35-python3-stack-data_0.6.3-1_all.deb ... 149s Unpacking python3-stack-data (0.6.3-1) ... 149s Selecting previously unselected package python3-ipython. 149s Preparing to unpack .../36-python3-ipython_8.35.0-2_all.deb ... 149s Unpacking python3-ipython (8.35.0-2) ... 149s Selecting previously unselected package python3-platformdirs. 149s Preparing to unpack .../37-python3-platformdirs_4.3.7-1_all.deb ... 149s Unpacking python3-platformdirs (4.3.7-1) ... 149s Selecting previously unselected package python3-jupyter-core. 149s Preparing to unpack .../38-python3-jupyter-core_5.7.2-5_all.deb ... 149s Unpacking python3-jupyter-core (5.7.2-5) ... 149s Selecting previously unselected package python3-psutil. 149s Preparing to unpack .../39-python3-psutil_7.1.0-1ubuntu1_armhf.deb ... 149s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 149s Selecting previously unselected package python3-tornado. 149s Preparing to unpack .../40-python3-tornado_6.5.2-3_armhf.deb ... 149s Unpacking python3-tornado (6.5.2-3) ... 149s Selecting previously unselected package python3-zmq. 149s Preparing to unpack .../41-python3-zmq_27.1.0-1_armhf.deb ... 149s Unpacking python3-zmq (27.1.0-1) ... 150s Selecting previously unselected package python3-jupyter-client. 150s Preparing to unpack .../42-python3-jupyter-client_8.6.3-3_all.deb ... 150s Unpacking python3-jupyter-client (8.6.3-3) ... 150s Selecting previously unselected package python3-nest-asyncio. 150s Preparing to unpack .../43-python3-nest-asyncio_1.5.4-1_all.deb ... 150s Unpacking python3-nest-asyncio (1.5.4-1) ... 150s Selecting previously unselected package python3-ipykernel. 150s Preparing to unpack .../44-python3-ipykernel_6.29.5-2_all.deb ... 150s Unpacking python3-ipykernel (6.29.5-2) ... 150s Selecting previously unselected package python3-tqdm. 150s Preparing to unpack .../45-python3-tqdm_4.67.1-5_all.deb ... 150s Unpacking python3-tqdm (4.67.1-5) ... 150s Selecting previously unselected package python3-ipyparallel. 150s Preparing to unpack .../46-python3-ipyparallel_8.8.0-5_all.deb ... 150s Unpacking python3-ipyparallel (8.8.0-5) ... 150s Selecting previously unselected package python3-outcome. 150s Preparing to unpack .../47-python3-outcome_1.2.0-2_all.deb ... 150s Unpacking python3-outcome (1.2.0-2) ... 150s Selecting previously unselected package python3-pluggy. 150s Preparing to unpack .../48-python3-pluggy_1.6.0-1_all.deb ... 150s Unpacking python3-pluggy (1.6.0-1) ... 150s Selecting previously unselected package python3-pytest. 150s Preparing to unpack .../49-python3-pytest_8.4.2-1_all.deb ... 150s Unpacking python3-pytest (8.4.2-1) ... 150s Selecting previously unselected package python3-pytest-asyncio. 150s Preparing to unpack .../50-python3-pytest-asyncio_1.2.0-1_all.deb ... 150s Unpacking python3-pytest-asyncio (1.2.0-1) ... 150s Selecting previously unselected package python3-pytest-timeout. 150s Preparing to unpack .../51-python3-pytest-timeout_2.3.1-2_all.deb ... 150s Unpacking python3-pytest-timeout (2.3.1-2) ... 150s Selecting previously unselected package python3-sniffio. 150s Preparing to unpack .../52-python3-sniffio_1.3.1-1_all.deb ... 150s Unpacking python3-sniffio (1.3.1-1) ... 150s Selecting previously unselected package python3-sortedcontainers. 150s Preparing to unpack .../53-python3-sortedcontainers_2.4.0-2_all.deb ... 150s Unpacking python3-sortedcontainers (2.4.0-2) ... 150s Selecting previously unselected package python3-trio. 150s Preparing to unpack .../54-python3-trio_0.29.0-1_all.deb ... 150s Unpacking python3-trio (0.29.0-1) ... 150s Setting up libpython3.13:armhf (3.13.9-1) ... 150s Setting up python3-iniconfig (2.1.0-1) ... 151s Setting up python3-sniffio (1.3.1-1) ... 151s Setting up python3-outcome (1.2.0-2) ... 151s Setting up python3-tornado (6.5.2-3) ... 152s Setting up libnorm1t64:armhf (1.5.9+dfsg-4) ... 152s Setting up python3-pure-eval (0.2.3-1) ... 152s Setting up libsodium23:armhf (1.0.18-1build3) ... 152s Setting up python3-async-generator (1.10-7) ... 153s Setting up libdebuginfod-common (0.194-1) ... 153s Setting up python3-parso (0.8.5-1) ... 153s Setting up python3-asttokens (3.0.0-2) ... 153s Setting up libpython3.14-minimal:armhf (3.14.0-4) ... 153s Setting up python3-tqdm (4.67.1-5) ... 154s Setting up python3-coverage (7.8.2+dfsg1-1) ... 154s Setting up python3-sortedcontainers (2.4.0-2) ... 154s Setting up python3-platformdirs (4.3.7-1) ... 155s Setting up python3-psutil (7.1.0-1ubuntu1) ... 155s Setting up libsource-highlight-common (3.1.9-4.3build1) ... 155s Setting up libc6-dbg:armhf (2.42-2ubuntu2) ... 155s Setting up libdw1t64:armhf (0.194-1) ... 155s Setting up libpgm-5.3-0t64:armhf (5.3.128~dfsg-2.1build1) ... 155s Setting up python3-decorator (5.2.1-2) ... 155s Setting up python3-flaky (3.8.1-3) ... 156s Setting up python3-wcwidth (0.2.13+dfsg1-1) ... 156s Setting up python3-trio (0.29.0-1) ... 157s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 157s Setting up python3-executing (2.2.0-0.2) ... 157s Setting up python3-nest-asyncio (1.5.4-1) ... 157s Setting up libbabeltrace1:armhf (1.5.11-4build3) ... 157s Setting up python3-pluggy (1.6.0-1) ... 157s Setting up python3-traitlets (5.14.3+really5.14.3-1) ... 158s Setting up python3-stack-data (0.6.3-1) ... 158s Setting up python3.14-minimal (3.14.0-4) ... 159s Setting up python3-jupyter-core (5.7.2-5) ... 159s Setting up python3-prompt-toolkit (3.0.52-1) ... 160s Setting up libdebuginfod1t64:armhf (0.194-1) ... 160s Setting up libzmq5:armhf (4.3.5-1build2) ... 160s Setting up python3-jedi (0.19.1+ds1-1) ... 161s Setting up libpython3.14-stdlib:armhf (3.14.0-4) ... 161s Setting up python3-pytest (8.4.2-1) ... 161s Setting up libsource-highlight4t64:armhf (3.1.9-4.3build1) ... 161s Setting up python3-matplotlib-inline (0.1.7-1) ... 162s Setting up python3-comm (0.2.1-1) ... 162s Setting up gdb (16.3-1ubuntu2) ... 162s Setting up python3-ipython (8.35.0-2) ... 162s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 162s return result 163s Setting up python3-zmq (27.1.0-1) ... 164s Setting up python3-pytest-asyncio (1.2.0-1) ... 164s Setting up python3-jupyter-client (8.6.3-3) ... 164s Setting up python3.14 (3.14.0-4) ... 166s Setting up python3-pytest-timeout (2.3.1-2) ... 166s Setting up python3-all (3.13.7-2) ... 166s Setting up python3-debugpy (1.8.12+ds-1ubuntu1) ... 167s Setting up python3-ipykernel (6.29.5-2) ... 168s Setting up python3-ipyparallel (8.8.0-5) ... 168s Processing triggers for systemd (257.9-0ubuntu2) ... 168s Processing triggers for man-db (2.13.1-1) ... 169s Processing triggers for libc-bin (2.42-2ubuntu2) ... 177s autopkgtest [11:38:49]: test pytest: [----------------------- 179s + py3versions -s 179s + PYS=python3.14 python3.13 179s + cp -r tests /tmp/autopkgtest.hVe4uT/autopkgtest_tmp 179s + cd /tmp/autopkgtest.hVe4uT/autopkgtest_tmp 179s + echo Testing with python3.14: 179s + timeout 300 python3.14 -m pytest -v -k not test_init_ipc_socket 179s Testing with python3.14: 180s ============================= test session starts ============================== 180s platform linux -- Python 3.14.0, pytest-8.4.2, pluggy-1.6.0 -- /usr/bin/python3.14 180s cachedir: .pytest_cache 180s rootdir: /tmp/autopkgtest.hVe4uT/autopkgtest_tmp 180s plugins: typeguard-4.4.2, flaky-3.8.1, asyncio-1.2.0, timeout-2.3.1 180s asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function 181s collecting ... collected 186 items / 1 deselected / 185 selected 181s 181s tests/inprocess/test_kernel.py::test_with_cell_id ERROR [ 0%] 182s tests/inprocess/test_kernel.py::test_pylab ERROR [ 1%] 182s tests/inprocess/test_kernel.py::test_raw_input ERROR [ 1%] 182s tests/inprocess/test_kernel.py::test_stdout ERROR [ 2%] 182s tests/inprocess/test_kernel.py::test_capfd SKIPPED (Currently don't ...) [ 2%] 182s tests/inprocess/test_kernel.py::test_getpass_stream ERROR [ 3%] 183s tests/inprocess/test_kernel.py::test_do_execute ERROR [ 3%] 183s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_complete FAILED [ 4%] 183s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_execute FAILED [ 4%] 183s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_history FAILED [ 5%] 183s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_inspect FAILED [ 5%] 184s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_interface FAILED [ 6%] 186s tests/test_async.py::test_async_await PASSED [ 7%] 193s tests/test_async.py::test_async_interrupt[asyncio] PASSED [ 7%] 195s tests/test_async.py::test_async_interrupt[trio] PASSED [ 8%] 196s tests/test_async.py::test_async_interrupt[curio] SKIPPED (Requires c...) [ 8%] 196s tests/test_comm.py::test_comm PASSED [ 9%] 196s tests/test_comm.py::test_comm_manager PASSED [ 9%] 197s tests/test_comm.py::test_comm_in_manager ERROR [ 10%] 197s tests/test_connect.py::test_get_connection_file PASSED [ 10%] 197s tests/test_connect.py::test_get_connection_info PASSED [ 11%] 197s tests/test_connect.py::test_port_bind_failure_raises PASSED [ 11%] 197s tests/test_connect.py::test_port_bind_failure_recovery PASSED [ 12%] 197s tests/test_connect.py::test_port_bind_failure_gives_up_retries PASSED [ 12%] 199s tests/test_debugger.py::test_debug_initialize PASSED [ 13%] 200s tests/test_debugger.py::test_attach_debug PASSED [ 14%] 202s tests/test_debugger.py::test_set_breakpoints PASSED [ 14%] 204s tests/test_debugger.py::test_stop_on_breakpoint PASSED [ 15%] 206s tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines PASSED [ 15%] 207s tests/test_debugger.py::test_rich_inspect_not_at_breakpoint PASSED [ 16%] 209s tests/test_debugger.py::test_rich_inspect_at_breakpoint PASSED [ 16%] 209s tests/test_debugger.py::test_convert_to_long_pathname PASSED [ 17%] 212s tests/test_debugger.py::test_copy_to_globals PASSED [ 17%] 215s tests/test_embed_kernel.py::test_embed_kernel_basic FAILED [ 18%] 218s tests/test_embed_kernel.py::test_embed_kernel_namespace FAILED [ 18%] 221s tests/test_embed_kernel.py::test_embed_kernel_reentrant FAILED [ 19%] 222s tests/test_embed_kernel.py::test_embed_kernel_func NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. 222s 222s To exit, you will have to explicitly quit this process, by either sending 222s "quit" from a client, or using Ctrl-\ in UNIX-like environments. 222s 222s To read more about this, see https://github.com/ipython/ipython/issues/2049 222s 222s 222s To connect another client to this kernel, use: 222s --existing kernel-1820.json 222s FAILED [ 20%] 224s tests/test_eventloop.py::test_asyncio_interrupt PASSED [ 20%] 226s tests/test_eventloop.py::test_tk_loop PASSED [ 21%] 227s tests/test_eventloop.py::test_asyncio_loop PASSED [ 21%] 228s tests/test_eventloop.py::test_enable_gui PASSED [ 22%] 228s tests/test_eventloop.py::test_cocoa_loop SKIPPED (MacOS-only) [ 22%] 228s tests/test_eventloop.py::test_qt_enable_gui SKIPPED (No viable versi...) [ 23%] 228s tests/test_heartbeat.py::test_port_bind_failure_raises PASSED [ 23%] 228s tests/test_heartbeat.py::test_port_bind_success PASSED [ 24%] 229s tests/test_heartbeat.py::test_port_bind_failure_recovery PASSED [ 24%] 229s tests/test_heartbeat.py::test_port_bind_failure_gives_up_retries PASSED [ 25%] 229s tests/test_io.py::test_io_api PASSED [ 25%] 229s tests/test_io.py::test_io_isatty PASSED [ 26%] 229s tests/test_io.py::test_io_thread PASSED [ 27%] 229s tests/test_io.py::test_background_socket PASSED [ 27%] 229s tests/test_io.py::test_outstream PASSED [ 28%] 229s tests/test_io.py::test_event_pipe_gc FAILED [ 28%] 230s tests/test_io.py::test_echo_watch PASSED [ 29%] 230s tests/test_ipkernel_direct.py::test_properties ERROR [ 29%] 231s tests/test_ipkernel_direct.py::test_direct_kernel_info_request ERROR [ 30%] 231s tests/test_ipkernel_direct.py::test_direct_execute_request ERROR [ 30%] 231s tests/test_ipkernel_direct.py::test_direct_execute_request_aborting ERROR [ 31%] 231s tests/test_ipkernel_direct.py::test_complete_request ERROR [ 31%] 232s tests/test_ipkernel_direct.py::test_inspect_request ERROR [ 32%] 232s tests/test_ipkernel_direct.py::test_history_request ERROR [ 32%] 232s tests/test_ipkernel_direct.py::test_comm_info_request ERROR [ 33%] 233s tests/test_ipkernel_direct.py::test_direct_interrupt_request ERROR [ 34%] 233s tests/test_ipkernel_direct.py::test_is_complete_request ERROR [ 34%] 234s tests/test_ipkernel_direct.py::test_do_apply ERROR [ 35%] 234s tests/test_ipkernel_direct.py::test_direct_debug_request ERROR [ 35%] 235s tests/test_ipkernel_direct.py::test_direct_clear ERROR [ 36%] 235s tests/test_ipkernel_direct.py::test_cancel_on_sigint ERROR [ 36%] 236s tests/test_ipkernel_direct.py::test_dispatch_debugpy ERROR [ 37%] 236s tests/test_ipkernel_direct.py::test_start ERROR [ 37%] 236s tests/test_ipkernel_direct.py::test_start_no_debugpy ERROR [ 38%] 236s tests/test_ipkernel_direct.py::test_create_comm PASSED [ 38%] 237s tests/test_ipkernel_direct.py::test_finish_metadata ERROR [ 39%] 237s tests/test_ipkernel_direct.py::test_do_debug_request ERROR [ 40%] 237s tests/test_jsonutil.py::test SKIPPED (json_clean is a no-op) [ 40%] 237s tests/test_jsonutil.py::test_encode_images SKIPPED (json_clean is a ...) [ 41%] 237s tests/test_jsonutil.py::test_lambda SKIPPED (json_clean is a no-op) [ 41%] 237s tests/test_jsonutil.py::test_exception SKIPPED (json_clean is a no-op) [ 42%] 237s tests/test_jsonutil.py::test_unicode_dict SKIPPED (json_clean is a n...) [ 42%] 238s tests/test_kernel.py::test_simple_print PASSED [ 43%] 239s tests/test_kernel.py::test_print_to_correct_cell_from_thread PASSED [ 43%] 241s tests/test_kernel.py::test_print_to_correct_cell_from_child_thread PASSED [ 44%] 242s tests/test_kernel.py::test_print_to_correct_cell_from_asyncio PASSED [ 44%] 242s tests/test_kernel.py::test_capture_fd SKIPPED (Currently don't captu...) [ 45%] 242s tests/test_kernel.py::test_subprocess_peek_at_stream_fileno SKIPPED [ 45%] 242s tests/test_kernel.py::test_sys_path PASSED [ 46%] 243s tests/test_kernel.py::test_sys_path_profile_dir PASSED [ 47%] 246s tests/test_kernel.py::test_subprocess_print PASSED [ 47%] 246s tests/test_kernel.py::test_subprocess_noprint PASSED [ 48%] 248s tests/test_kernel.py::test_subprocess_error PASSED [ 48%] 248s tests/test_kernel.py::test_raw_input PASSED [ 49%] 248s tests/test_kernel.py::test_save_history PASSED [ 49%] 248s tests/test_kernel.py::test_smoke_faulthandler PASSED [ 50%] 249s tests/test_kernel.py::test_help_output PASSED [ 50%] 249s tests/test_kernel.py::test_is_complete PASSED [ 51%] 249s tests/test_kernel.py::test_complete SKIPPED (only run on Windows) [ 51%] 249s tests/test_kernel.py::test_matplotlib_inline_on_import SKIPPED (this...) [ 52%] 251s tests/test_kernel.py::test_message_order PASSED [ 52%] 251s tests/test_kernel.py::test_unc_paths SKIPPED (test only on windows) [ 53%] 252s tests/test_kernel.py::test_shutdown PASSED [ 54%] 254s tests/test_kernel.py::test_interrupt_during_input PASSED [ 54%] 257s tests/test_kernel.py::test_interrupt_with_message PASSED [ 55%] 259s tests/test_kernel.py::test_interrupt_during_pdb_set_trace PASSED [ 55%] 262s tests/test_kernel.py::test_control_thread_priority PASSED [ 56%] 262s tests/test_kernel.py::test_shutdown_subprocesses SKIPPED (Stalls on ...) [ 56%] 262s tests/test_kernel_direct.py::test_direct_kernel_info_request FAILED [ 57%] 262s tests/test_kernel_direct.py::test_direct_execute_request FAILED [ 57%] 262s tests/test_kernel_direct.py::test_direct_execute_request_aborting FAILED [ 58%] 262s tests/test_kernel_direct.py::test_direct_execute_request_error FAILED [ 58%] 262s tests/test_kernel_direct.py::test_complete_request FAILED [ 59%] 262s tests/test_kernel_direct.py::test_inspect_request FAILED [ 60%] 262s tests/test_kernel_direct.py::test_history_request FAILED [ 60%] 262s tests/test_kernel_direct.py::test_comm_info_request FAILED [ 61%] 262s tests/test_kernel_direct.py::test_direct_interrupt_request FAILED [ 61%] 262s tests/test_kernel_direct.py::test_direct_shutdown_request FAILED [ 62%] 262s tests/test_kernel_direct.py::test_is_complete_request FAILED [ 62%] 262s tests/test_kernel_direct.py::test_direct_debug_request FAILED [ 63%] 262s tests/test_kernel_direct.py::test_deprecated_features FAILED [ 63%] 262s tests/test_kernel_direct.py::test_process_control FAILED [ 64%] 262s tests/test_kernel_direct.py::test_should_handle PASSED [ 64%] 262s tests/test_kernel_direct.py::test_dispatch_shell FAILED [ 65%] 262s tests/test_kernel_direct.py::test_do_one_iteration FAILED [ 65%] 262s tests/test_kernel_direct.py::test_publish_debug_event FAILED [ 66%] 262s tests/test_kernel_direct.py::test_connect_request FAILED [ 67%] 262s tests/test_kernel_direct.py::test_send_interrupt_children FAILED [ 67%] 262s tests/test_kernelapp.py::test_blackhole PASSED [ 68%] 263s tests/test_kernelapp.py::test_start_app PASSED [ 68%] 263s tests/test_kernelapp.py::test_merge_connection_file PASSED [ 69%] 263s tests/test_kernelapp.py::test_trio_loop PASSED [ 69%] 263s tests/test_kernelspec.py::test_make_ipkernel_cmd PASSED [ 70%] 263s tests/test_kernelspec.py::test_get_kernel_dict PASSED [ 70%] 263s tests/test_kernelspec.py::test_get_kernel_dict_with_profile PASSED [ 71%] 263s tests/test_kernelspec.py::test_write_kernel_spec PASSED [ 71%] 263s tests/test_kernelspec.py::test_write_kernel_spec_path PASSED [ 72%] 263s tests/test_kernelspec.py::test_install_kernelspec FAILED [ 72%] 263s tests/test_kernelspec.py::test_install_user PASSED [ 73%] 263s tests/test_kernelspec.py::test_install PASSED [ 74%] 263s tests/test_kernelspec.py::test_install_profile PASSED [ 74%] 263s tests/test_kernelspec.py::test_install_display_name_overrides_profile PASSED [ 75%] 263s tests/test_kernelspec.py::test_install_env[None] PASSED [ 75%] 263s tests/test_kernelspec.py::test_install_env[env1] PASSED [ 76%] 263s tests/test_kernelspec.py::test_install_env[env2] PASSED [ 76%] 263s tests/test_kernelspec.py::test_install_frozen_modules_on PASSED [ 77%] 263s tests/test_kernelspec.py::test_install_frozen_modules_off PASSED [ 77%] 263s tests/test_kernelspec.py::test_install_frozen_modules_no_op SKIPPED [ 78%] 263s tests/test_message_spec.py::test_execute PASSED [ 78%] 265s tests/test_message_spec.py::test_execute_silent PASSED [ 79%] 265s tests/test_message_spec.py::test_execute_error PASSED [ 80%] 265s tests/test_message_spec.py::test_execute_inc PASSED [ 80%] 268s tests/test_message_spec.py::test_execute_stop_on_error PASSED [ 81%] 269s tests/test_message_spec.py::test_non_execute_stop_on_error PASSED [ 81%] 269s tests/test_message_spec.py::test_user_expressions PASSED [ 82%] 270s tests/test_message_spec.py::test_user_expressions_fail PASSED [ 82%] 270s tests/test_message_spec.py::test_oinfo PASSED [ 83%] 271s tests/test_message_spec.py::test_oinfo_found PASSED [ 83%] 271s tests/test_message_spec.py::test_oinfo_detail PASSED [ 84%] 271s tests/test_message_spec.py::test_oinfo_not_found PASSED [ 84%] 272s tests/test_message_spec.py::test_complete PASSED [ 85%] 272s tests/test_message_spec.py::test_kernel_info_request PASSED [ 85%] 273s tests/test_message_spec.py::test_connect_request PASSED [ 86%] 273s tests/test_message_spec.py::test_comm_info_request PASSED [ 87%] 274s tests/test_message_spec.py::test_single_payload PASSED [ 87%] 274s tests/test_message_spec.py::test_is_complete PASSED [ 88%] 275s tests/test_message_spec.py::test_history_range PASSED [ 88%] 275s tests/test_message_spec.py::test_history_tail PASSED [ 89%] 275s tests/test_message_spec.py::test_history_search PASSED [ 89%] 276s tests/test_message_spec.py::test_stream PASSED [ 90%] 276s tests/test_message_spec.py::test_display_data PASSED [ 90%] 276s tests/test_parentpoller.py::test_parent_poller_unix PASSED [ 91%] 276s tests/test_parentpoller.py::test_parent_poller_windows SKIPPED (only...) [ 91%] 276s tests/test_pickleutil.py::test_no_closure PASSED [ 92%] 276s tests/test_pickleutil.py::test_generator_closure PASSED [ 92%] 276s tests/test_pickleutil.py::test_nested_closure PASSED [ 93%] 276s tests/test_pickleutil.py::test_closure PASSED [ 94%] 276s tests/test_pickleutil.py::test_uncan_bytes_buffer PASSED [ 94%] 279s tests/test_start_kernel.py::test_ipython_start_kernel_userns FAILED [ 95%] 282s tests/test_start_kernel.py::test_ipython_start_kernel_no_userns FAILED [ 95%] 282s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_hook_halts_send PASSED [ 96%] 282s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_hook_return_calls_send PASSED [ 96%] 282s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_publisher_creation PASSED [ 97%] 282s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_publish PASSED [ 97%] 282s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_thread_local_hooks PASSED [ 98%] 282s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_unregister_hook PASSED [ 98%] 283s tests/test_zmq_shell.py::test_magics PASSED [ 99%] 283s tests/test_zmq_shell.py::test_zmq_interactive_shell PASSED [100%] 283s 283s ==================================== ERRORS ==================================== 283s _____________________ ERROR at setup of test_with_cell_id ______________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s @pytest.fixture() 283s def kc(): 283s km = InProcessKernelManager() 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernel.py:44: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:9: in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ---------------------------- Captured stderr setup ----------------------------- 283s 0.00s - Debugger warning: It seems that frozen modules are being used, which may 283s 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 283s 0.00s - to python to disable frozen modules. 283s 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. 283s _________________________ ERROR at setup of test_pylab _________________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s @pytest.fixture() 283s def kc(): 283s km = InProcessKernelManager() 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernel.py:44: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _______________________ ERROR at setup of test_raw_input _______________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s @pytest.fixture() 283s def kc(): 283s km = InProcessKernelManager() 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernel.py:44: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ________________________ ERROR at setup of test_stdout _________________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s @pytest.fixture() 283s def kc(): 283s km = InProcessKernelManager() 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernel.py:44: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ____________________ ERROR at setup of test_getpass_stream _____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s @pytest.fixture() 283s def kc(): 283s km = InProcessKernelManager() 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernel.py:44: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ______________________ ERROR at setup of test_do_execute _______________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s @pytest.fixture() 283s def kc(): 283s km = InProcessKernelManager() 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernel.py:44: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ____________________ ERROR at setup of test_comm_in_manager ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ______________________ ERROR at setup of test_properties _______________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ______________ ERROR at setup of test_direct_kernel_info_request _______________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ________________ ERROR at setup of test_direct_execute_request _________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ____________ ERROR at setup of test_direct_execute_request_aborting ____________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ___________________ ERROR at setup of test_complete_request ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ____________________ ERROR at setup of test_inspect_request ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ____________________ ERROR at setup of test_history_request ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ___________________ ERROR at setup of test_comm_info_request ___________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _______________ ERROR at setup of test_direct_interrupt_request ________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s __________________ ERROR at setup of test_is_complete_request __________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _______________________ ERROR at setup of test_do_apply ________________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _________________ ERROR at setup of test_direct_debug_request __________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _____________________ ERROR at setup of test_direct_clear ______________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ___________________ ERROR at setup of test_cancel_on_sigint ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ___________________ ERROR at setup of test_dispatch_debugpy ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _________________________ ERROR at setup of test_start _________________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ___________________ ERROR at setup of test_start_no_debugpy ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ____________________ ERROR at setup of test_finish_metadata ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ___________________ ERROR at setup of test_do_debug_request ____________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 283s ^^^^^^^^^^^^^^^^^^^^^^^^ 283s ) 283s 283s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 283s return (yield) 283s ^^^^^ 283s tests/conftest.py:156: in ipkernel 283s kernel = MockIPyKernel() 283s ^^^^^^^^^^^^^^^ 283s tests/conftest.py:143: in __init__ 283s super().__init__(*args, **kwargs) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s =================================== FAILURES =================================== 283s _________________ InProcessKernelManagerTestCase.test_complete _________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s self = 283s 283s def test_complete(self): 283s """Does requesting completion from an in-process kernel work?""" 283s km = self.km 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernelmanager.py:70: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _________________ InProcessKernelManagerTestCase.test_execute __________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s self = 283s 283s def test_execute(self): 283s """Does executing code in an in-process kernel work?""" 283s km = self.km 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernelmanager.py:60: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _________________ InProcessKernelManagerTestCase.test_history __________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s self = 283s 283s def test_history(self): 283s """Does requesting history from an in-process kernel work?""" 283s km = self.km 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernelmanager.py:99: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s _________________ InProcessKernelManagerTestCase.test_inspect __________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s self = 283s 283s def test_inspect(self): 283s """Does requesting object information from an in-process kernel work?""" 283s km = self.km 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernelmanager.py:83: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ________________ InProcessKernelManagerTestCase.test_interface _________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s self = 283s 283s @flaky 283s def test_interface(self): 283s """Does the in-process kernel manager implement the basic KM interface?""" 283s km = self.km 283s assert not km.has_kernel 283s 283s > km.start_kernel() 283s 283s tests/inprocess/test_kernelmanager.py:30: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 283s self.kernel = InProcessKernel(parent=self, session=self.session) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 283s super().__init__(**traits) 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ___________________________ test_embed_kernel_basic ____________________________ 283s 283s @flaky(max_runs=3) 283s def test_embed_kernel_basic(): 283s """IPython.embed_kernel() is basically functional""" 283s cmd = "\n".join( 283s [ 283s "from IPython import embed_kernel", 283s "def go():", 283s " a=5", 283s ' b="hi there"', 283s " embed_kernel()", 283s "go()", 283s "", 283s ] 283s ) 283s 283s > with setup_kernel(cmd) as client: 283s ^^^^^^^^^^^^^^^^^ 283s 283s tests/test_embed_kernel.py:109: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3.14/contextlib.py:141: in __enter__ 283s return next(self.gen) 283s ^^^^^^^^^^^^^^ 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s cmd = 'from IPython import embed_kernel\ndef go():\n a=5\n b="hi there"\n embed_kernel()\ngo()\n' 283s 283s @contextmanager 283s def setup_kernel(cmd): 283s """start an embedded kernel in a subprocess, and wait for it to be ready 283s 283s Returns 283s ------- 283s kernel_manager: connected KernelManager instance 283s """ 283s 283s def connection_file_ready(connection_file): 283s """Check if connection_file is a readable json file.""" 283s if not os.path.exists(connection_file): 283s return False 283s try: 283s with open(connection_file) as f: 283s json.load(f) 283s return True 283s except ValueError: 283s return False 283s 283s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 283s try: 283s connection_file = os.path.join( 283s paths.jupyter_runtime_dir(), 283s "kernel-%i.json" % kernel.pid, 283s ) 283s # wait for connection file to exist, timeout after 5s 283s tic = time.time() 283s while ( 283s not connection_file_ready(connection_file) 283s and kernel.poll() is None 283s and time.time() < tic + SETUP_TIMEOUT 283s ): 283s time.sleep(0.1) 283s 283s # Wait 100ms for the writing to finish 283s time.sleep(0.1) 283s 283s if kernel.poll() is not None: 283s o, e = kernel.communicate() 283s > raise OSError("Kernel failed to start:\n%s" % e) 283s E OSError: Kernel failed to start: 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s E from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s E from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s E from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s E from _pydevd_bundle.pydevd_cython_wrapper import ( 283s E ...<4 lines>... 283s E ) 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s E mod = getattr(__import__(check_name), mod_name) 283s E ~~~~~~~~~~^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "", line 6, in 283s E go() 283s E ~~^^ 283s E File "", line 5, in go 283s E embed_kernel() 283s E ~~~~~~~~~~~~^^ 283s E File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s E real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s E app.initialize([]) 283s E ~~~~~~~~~~~~~~^^^^ 283s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s E return method(app, *args, **kwargs) 283s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s E self.init_kernel() 283s E ~~~~~~~~~~~~~~~~^^ 283s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s E kernel = kernel_factory( 283s E parent=self, 283s E ...<11 lines>... 283s E user_ns=self.user_ns, 283s E ) 283s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s E inst = cls(*args, **kwargs) 283s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s E from .debugger import Debugger, _is_debugpy_available 283s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s E raise e 283s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s E from debugpy.server import api # noqa: F401 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s E import debugpy._vendored.force_pydevd # noqa 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s E preimport('pydevd', [ 283s E ~~~~~~~~~^^^^^^^^^^^^ 283s E '_pydev_bundle', 283s E ^^^^^^^^^^^^^^^^ 283s E ...<5 lines>... 283s E 'pydevd', 283s E ^^^^^^^^^ 283s E ]) 283s E ^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s E import_module(name) 283s E ~~~~~~~~~~~~~^^^^^^ 283s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s E return _bootstrap._gcd_import(name[level:], package, level) 283s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s E from _pydevd_bundle import pydevd_vars 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s E from ._pydevd_sys_monitoring import * 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E ...<4 lines>... 283s E ) # @UnusedImport 283s E ^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s E ...<4 lines>... 283s E ) 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s E _opcode.opmap["BEFORE_ASYNC_WITH"], 283s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s tests/test_embed_kernel.py:69: OSError 283s _________________________ test_embed_kernel_namespace __________________________ 283s 283s @flaky(max_runs=3) 283s def test_embed_kernel_namespace(): 283s """IPython.embed_kernel() inherits calling namespace""" 283s cmd = "\n".join( 283s [ 283s "from IPython import embed_kernel", 283s "def go():", 283s " a=5", 283s ' b="hi there"', 283s " embed_kernel()", 283s "go()", 283s "", 283s ] 283s ) 283s 283s > with setup_kernel(cmd) as client: 283s ^^^^^^^^^^^^^^^^^ 283s 283s tests/test_embed_kernel.py:145: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3.14/contextlib.py:141: in __enter__ 283s return next(self.gen) 283s ^^^^^^^^^^^^^^ 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s cmd = 'from IPython import embed_kernel\ndef go():\n a=5\n b="hi there"\n embed_kernel()\ngo()\n' 283s 283s @contextmanager 283s def setup_kernel(cmd): 283s """start an embedded kernel in a subprocess, and wait for it to be ready 283s 283s Returns 283s ------- 283s kernel_manager: connected KernelManager instance 283s """ 283s 283s def connection_file_ready(connection_file): 283s """Check if connection_file is a readable json file.""" 283s if not os.path.exists(connection_file): 283s return False 283s try: 283s with open(connection_file) as f: 283s json.load(f) 283s return True 283s except ValueError: 283s return False 283s 283s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 283s try: 283s connection_file = os.path.join( 283s paths.jupyter_runtime_dir(), 283s "kernel-%i.json" % kernel.pid, 283s ) 283s # wait for connection file to exist, timeout after 5s 283s tic = time.time() 283s while ( 283s not connection_file_ready(connection_file) 283s and kernel.poll() is None 283s and time.time() < tic + SETUP_TIMEOUT 283s ): 283s time.sleep(0.1) 283s 283s # Wait 100ms for the writing to finish 283s time.sleep(0.1) 283s 283s if kernel.poll() is not None: 283s o, e = kernel.communicate() 283s > raise OSError("Kernel failed to start:\n%s" % e) 283s E OSError: Kernel failed to start: 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s E from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s E from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s E from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s E from _pydevd_bundle.pydevd_cython_wrapper import ( 283s E ...<4 lines>... 283s E ) 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s E mod = getattr(__import__(check_name), mod_name) 283s E ~~~~~~~~~~^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "", line 6, in 283s E go() 283s E ~~^^ 283s E File "", line 5, in go 283s E embed_kernel() 283s E ~~~~~~~~~~~~^^ 283s E File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s E real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s E app.initialize([]) 283s E ~~~~~~~~~~~~~~^^^^ 283s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s E return method(app, *args, **kwargs) 283s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s E self.init_kernel() 283s E ~~~~~~~~~~~~~~~~^^ 283s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s E kernel = kernel_factory( 283s E parent=self, 283s E ...<11 lines>... 283s E user_ns=self.user_ns, 283s E ) 283s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s E inst = cls(*args, **kwargs) 283s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s E from .debugger import Debugger, _is_debugpy_available 283s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s E raise e 283s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s E from debugpy.server import api # noqa: F401 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s E import debugpy._vendored.force_pydevd # noqa 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s E preimport('pydevd', [ 283s E ~~~~~~~~~^^^^^^^^^^^^ 283s E '_pydev_bundle', 283s E ^^^^^^^^^^^^^^^^ 283s E ...<5 lines>... 283s E 'pydevd', 283s E ^^^^^^^^^ 283s E ]) 283s E ^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s E import_module(name) 283s E ~~~~~~~~~~~~~^^^^^^ 283s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s E return _bootstrap._gcd_import(name[level:], package, level) 283s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s E from _pydevd_bundle import pydevd_vars 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s E from ._pydevd_sys_monitoring import * 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E ...<4 lines>... 283s E ) # @UnusedImport 283s E ^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s E ...<4 lines>... 283s E ) 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s E _opcode.opmap["BEFORE_ASYNC_WITH"], 283s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s tests/test_embed_kernel.py:69: OSError 283s _________________________ test_embed_kernel_reentrant __________________________ 283s 283s @flaky(max_runs=3) 283s def test_embed_kernel_reentrant(): 283s """IPython.embed_kernel() can be called multiple times""" 283s cmd = "\n".join( 283s [ 283s "from IPython import embed_kernel", 283s "count = 0", 283s "def go():", 283s " global count", 283s " embed_kernel()", 283s " count = count + 1", 283s "", 283s "while True: go()", 283s "", 283s ] 283s ) 283s 283s > with setup_kernel(cmd) as client: 283s ^^^^^^^^^^^^^^^^^ 283s 283s tests/test_embed_kernel.py:186: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3.14/contextlib.py:141: in __enter__ 283s return next(self.gen) 283s ^^^^^^^^^^^^^^ 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s cmd = 'from IPython import embed_kernel\ncount = 0\ndef go():\n global count\n embed_kernel()\n count = count + 1\n\nwhile True: go()\n' 283s 283s @contextmanager 283s def setup_kernel(cmd): 283s """start an embedded kernel in a subprocess, and wait for it to be ready 283s 283s Returns 283s ------- 283s kernel_manager: connected KernelManager instance 283s """ 283s 283s def connection_file_ready(connection_file): 283s """Check if connection_file is a readable json file.""" 283s if not os.path.exists(connection_file): 283s return False 283s try: 283s with open(connection_file) as f: 283s json.load(f) 283s return True 283s except ValueError: 283s return False 283s 283s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 283s try: 283s connection_file = os.path.join( 283s paths.jupyter_runtime_dir(), 283s "kernel-%i.json" % kernel.pid, 283s ) 283s # wait for connection file to exist, timeout after 5s 283s tic = time.time() 283s while ( 283s not connection_file_ready(connection_file) 283s and kernel.poll() is None 283s and time.time() < tic + SETUP_TIMEOUT 283s ): 283s time.sleep(0.1) 283s 283s # Wait 100ms for the writing to finish 283s time.sleep(0.1) 283s 283s if kernel.poll() is not None: 283s o, e = kernel.communicate() 283s raise OSError("Kernel failed to start:\n%s" % e) 283s 283s if not os.path.exists(connection_file): 283s if kernel.poll() is None: 283s kernel.terminate() 283s > raise OSError("Connection file %r never arrived" % connection_file) 283s E OSError: Connection file '/home/ubuntu/.local/share/jupyter/runtime/kernel-2213.json' never arrived 283s 283s tests/test_embed_kernel.py:74: OSError 283s ____________________________ test_embed_kernel_func ____________________________ 283s 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 283s 283s if IS_PY312_OR_GREATER: 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring_cython import * 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s from ._pydevd_sys_monitoring import * 283s 283s else: 283s try: 283s > from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s > from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s > from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 283s 283s During handling of the above exception, another exception occurred: 283s 283s # Defines which version of the trace_dispatch we'll use. 283s # Should give warning only here if cython is not available but supported. 283s 283s import os 283s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 283s from _pydev_bundle import pydev_log 283s 283s dirname = os.path.dirname(os.path.dirname(__file__)) 283s USING_CYTHON = False 283s 283s 283s def delete_old_compiled_extensions(): 283s import _pydevd_bundle 283s 283s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 283s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 283s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 283s try: 283s import shutil 283s 283s for file in os.listdir(_pydevd_bundle_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 283s for file in os.listdir(_pydevd_frame_eval_ext_dir): 283s if file.startswith("pydevd") and file.endswith(".so"): 283s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 283s build_dir = os.path.join(cython_extensions_dir, "build") 283s if os.path.exists(build_dir): 283s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 283s except OSError: 283s pydev_log.error_once( 283s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 283s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 283s ) 283s 283s 283s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 283s # We must import the cython version if forcing cython 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s USING_CYTHON = True 283s 283s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 283s # Use the regular version if not forcing cython 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) # @UnusedImport 283s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 283s 283s else: 283s # Regular: use fallback if not found and give message to user 283s try: 283s > from _pydevd_bundle.pydevd_cython_wrapper import ( 283s trace_dispatch, 283s global_cache_skips, 283s global_cache_frame_skips, 283s fix_top_level_trace_and_get_trace_func, 283s ) 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import sys 283s 283s try: 283s try: 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s 283s except ImportError: 283s from _pydevd_bundle import pydevd_cython as mod 283s 283s except ImportError: 283s import struct 283s 283s try: 283s is_python_64bit = struct.calcsize("P") == 8 283s except: 283s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 283s raise ImportError 283s plat = "32" 283s if is_python_64bit: 283s plat = "64" 283s 283s # We also accept things as: 283s # 283s # _pydevd_bundle.pydevd_cython_win32_27_32 283s # _pydevd_bundle.pydevd_cython_win32_34_64 283s # 283s # to have multiple pre-compiled pyds distributed along the IDE 283s # (generated by build_tools/build_binaries_windows.py). 283s 283s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 283s check_name = "_pydevd_bundle.%s" % (mod_name,) 283s > mod = getattr(__import__(check_name), mod_name) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 283s 283s During handling of the above exception, another exception occurred: 283s 283s def test_embed_kernel_func(): 283s from types import ModuleType 283s 283s module = ModuleType("test") 283s 283s def trigger_stop(): 283s time.sleep(1) 283s app = IPKernelApp.instance() 283s app.io_loop.add_callback(app.io_loop.stop) 283s IPKernelApp.clear_instance() 283s 283s thread = threading.Thread(target=trigger_stop) 283s thread.start() 283s 283s > embed_kernel(module, outstream_class=None) 283s 283s tests/test_embed_kernel.py:215: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/ipykernel/embed.py:38: in embed_kernel 283s app.initialize([]) 283s /usr/lib/python3/dist-packages/traitlets/config/application.py:118: in inner 283s return method(app, *args, **kwargs) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/kernelapp.py:707: in initialize 283s self.init_kernel() 283s /usr/lib/python3/dist-packages/ipykernel/kernelapp.py:555: in init_kernel 283s kernel = kernel_factory( 283s /usr/lib/python3/dist-packages/traitlets/config/configurable.py:583: in instance 283s inst = cls(*args, **kwargs) 283s ^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 283s raise e 283s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 283s preimport('pydevd', [ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 283s import_module(name) 283s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 283s from _pydevd_bundle import pydevd_vars 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 283s from ._pydevd_sys_monitoring import * 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 283s from _pydevd_frame_eval.vendored import bytecode 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s import opcode as _opcode 283s from enum import IntFlag 283s from typing import Optional, Union 283s 283s # alias to keep the 'bytecode' variable free 283s from _pydevd_frame_eval.vendored import bytecode as _bytecode 283s 283s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 283s from .utils import PY311, PY312, PY313 283s 283s 283s class CompilerFlags(IntFlag): 283s """Possible values of the co_flags attribute of Code object. 283s 283s Note: We do not rely on inspect values here as some of them are missing and 283s furthermore would be version dependent. 283s 283s """ 283s 283s OPTIMIZED = 0x00001 283s NEWLOCALS = 0x00002 283s VARARGS = 0x00004 283s VARKEYWORDS = 0x00008 283s NESTED = 0x00010 283s GENERATOR = 0x00020 283s NOFREE = 0x00040 283s # New in Python 3.5 283s # Used for coroutines defined using async def ie native coroutine 283s COROUTINE = 0x00080 283s # Used for coroutines defined as a generator and then decorated using 283s # types.coroutine 283s ITERABLE_COROUTINE = 0x00100 283s # New in Python 3.6 283s # Generator defined in an async def function 283s ASYNC_GENERATOR = 0x00200 283s 283s FUTURE_GENERATOR_STOP = 0x800000 283s FUTURE_ANNOTATIONS = 0x1000000 283s 283s 283s UNOPTIMIZED_OPCODES = ( 283s _opcode.opmap["STORE_NAME"], 283s _opcode.opmap["LOAD_NAME"], 283s _opcode.opmap["DELETE_NAME"], 283s ) 283s 283s ASYNC_OPCODES = ( 283s _opcode.opmap["GET_AWAITABLE"], 283s _opcode.opmap["GET_AITER"], 283s _opcode.opmap["GET_ANEXT"], 283s > _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 283s _opcode.opmap["END_ASYNC_FOR"], 283s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 283s ) 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 283s ______________________________ test_event_pipe_gc ______________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ---------------------------- Captured stderr setup ----------------------------- 283s WARNING:tornado.general:Got events for stream attached to closed socket: Socket operation on non-socket 283s _______________________ test_direct_kernel_info_request ________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _________________________ test_direct_execute_request __________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _____________________ test_direct_execute_request_aborting _____________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ______________________ test_direct_execute_request_error _______________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ____________________________ test_complete_request _____________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _____________________________ test_inspect_request _____________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _____________________________ test_history_request _____________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ____________________________ test_comm_info_request ____________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ________________________ test_direct_interrupt_request _________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _________________________ test_direct_shutdown_request _________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ___________________________ test_is_complete_request ___________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s __________________________ test_direct_debug_request ___________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ___________________________ test_deprecated_features ___________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _____________________________ test_process_control _____________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _____________________________ test_dispatch_shell ______________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ____________________________ test_do_one_iteration _____________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ___________________________ test_publish_debug_event ___________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _____________________________ test_connect_request _____________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s _________________________ test_send_interrupt_children _________________________ 283s async def functions are not natively supported. 283s You need to install a suitable plugin for your async framework, for example: 283s - anyio 283s - pytest-asyncio 283s - pytest-tornasync 283s - pytest-trio 283s - pytest-twisted 283s ___________________________ test_install_kernelspec ____________________________ 283s 283s def test_install_kernelspec(): 283s path = tempfile.mkdtemp() 283s try: 283s > InstallIPythonKernelSpecApp.launch_instance(argv=["--prefix", path]) 283s 283s tests/test_kernelspec.py:83: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3/dist-packages/traitlets/config/application.py:1073: in launch_instance 283s app = cls.instance(**kwargs) 283s ^^^^^^^^^^^^^^^^^^^^^^ 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s cls = , args = () 283s kwargs = {} 283s 283s @classmethod 283s def instance(cls: type[CT], *args: t.Any, **kwargs: t.Any) -> CT: 283s """Returns a global instance of this class. 283s 283s This method create a new instance if none have previously been created 283s and returns a previously created instance is one already exists. 283s 283s The arguments and keyword arguments passed to this method are passed 283s on to the :meth:`__init__` method of the class upon instantiation. 283s 283s Examples 283s -------- 283s Create a singleton class using instance, and retrieve it:: 283s 283s >>> from traitlets.config.configurable import SingletonConfigurable 283s >>> class Foo(SingletonConfigurable): pass 283s >>> foo = Foo.instance() 283s >>> foo == Foo.instance() 283s True 283s 283s Create a subclass that is retrieved using the base class instance:: 283s 283s >>> class Bar(SingletonConfigurable): pass 283s >>> class Bam(Bar): pass 283s >>> bam = Bam.instance() 283s >>> bam == Bar.instance() 283s True 283s """ 283s # Create and save the instance 283s if cls._instance is None: 283s inst = cls(*args, **kwargs) 283s # Now make sure that the instance will also be returned by 283s # parent classes' _instance attribute. 283s for subclass in cls._walk_mro(): 283s subclass._instance = inst 283s 283s if isinstance(cls._instance, cls): 283s return cls._instance 283s else: 283s > raise MultipleInstanceError( 283s f"An incompatible sibling of '{cls.__name__}' is already instantiated" 283s f" as singleton: {type(cls._instance).__name__}" 283s ) 283s E traitlets.config.configurable.MultipleInstanceError: An incompatible sibling of 'InstallIPythonKernelSpecApp' is already instantiated as singleton: IPKernelApp 283s 283s /usr/lib/python3/dist-packages/traitlets/config/configurable.py:592: MultipleInstanceError 283s _______________________ test_ipython_start_kernel_userns _______________________ 283s 283s @flaky(max_runs=3) 283s def test_ipython_start_kernel_userns(): 283s cmd = dedent( 283s """ 283s from ipykernel.kernelapp import launch_new_instance 283s ns = {"custom": 123} 283s launch_new_instance(user_ns=ns) 283s """ 283s ) 283s 283s > with setup_kernel(cmd) as client: 283s ^^^^^^^^^^^^^^^^^ 283s 283s tests/test_start_kernel.py:25: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3.14/contextlib.py:141: in __enter__ 283s return next(self.gen) 283s ^^^^^^^^^^^^^^ 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s cmd = '\nfrom ipykernel.kernelapp import launch_new_instance\nns = {"custom": 123}\nlaunch_new_instance(user_ns=ns)\n' 283s 283s @contextmanager 283s def setup_kernel(cmd): 283s """start an embedded kernel in a subprocess, and wait for it to be ready 283s 283s Returns 283s ------- 283s kernel_manager: connected KernelManager instance 283s """ 283s 283s def connection_file_ready(connection_file): 283s """Check if connection_file is a readable json file.""" 283s if not os.path.exists(connection_file): 283s return False 283s try: 283s with open(connection_file) as f: 283s json.load(f) 283s return True 283s except ValueError: 283s return False 283s 283s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 283s try: 283s connection_file = os.path.join( 283s paths.jupyter_runtime_dir(), 283s "kernel-%i.json" % kernel.pid, 283s ) 283s # wait for connection file to exist, timeout after 5s 283s tic = time.time() 283s while ( 283s not connection_file_ready(connection_file) 283s and kernel.poll() is None 283s and time.time() < tic + SETUP_TIMEOUT 283s ): 283s time.sleep(0.1) 283s 283s # Wait 100ms for the writing to finish 283s time.sleep(0.1) 283s 283s if kernel.poll() is not None: 283s o, e = kernel.communicate() 283s > raise OSError("Kernel failed to start:\n%s" % e) 283s E OSError: Kernel failed to start: 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s E from ._pydevd_sys_monitoring_cython import * 283s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s E from _pydevd_bundle_ext import pydevd_cython as mod 283s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s E from _pydevd_bundle import pydevd_cython as mod 283s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s E from _pydevd_bundle.pydevd_cython_wrapper import ( 283s E ...<4 lines>... 283s E ) 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s E mod = getattr(__import__(check_name), mod_name) 283s E ~~~~~~~~~~^^^^^^^^^^^^ 283s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s E 283s E During handling of the above exception, another exception occurred: 283s E 283s E Traceback (most recent call last): 283s E File "", line 4, in 283s E launch_new_instance(user_ns=ns) 283s E ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 283s E app.initialize(argv) 283s E ~~~~~~~~~~~~~~^^^^^^ 283s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s E return method(app, *args, **kwargs) 283s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s E self.init_kernel() 283s E ~~~~~~~~~~~~~~~~^^ 283s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s E kernel = kernel_factory( 283s E parent=self, 283s E ...<11 lines>... 283s E user_ns=self.user_ns, 283s E ) 283s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s E inst = cls(*args, **kwargs) 283s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s E from .debugger import Debugger, _is_debugpy_available 283s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s E raise e 283s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s E from debugpy.server import api # noqa: F401 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s E import debugpy._vendored.force_pydevd # noqa 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s E preimport('pydevd', [ 283s E ~~~~~~~~~^^^^^^^^^^^^ 283s E '_pydev_bundle', 283s E ^^^^^^^^^^^^^^^^ 283s E ...<5 lines>... 283s E 'pydevd', 283s E ^^^^^^^^^ 283s E ]) 283s E ^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s E import_module(name) 283s E ~~~~~~~~~~~~~^^^^^^ 283s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s E return _bootstrap._gcd_import(name[level:], package, level) 283s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s E from _pydevd_bundle import pydevd_vars 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s E from ._pydevd_sys_monitoring import * 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s E ...<4 lines>... 283s E ) # @UnusedImport 283s E ^ 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s E ...<4 lines>... 283s E ) 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s E _opcode.opmap["BEFORE_ASYNC_WITH"], 283s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s E KeyError: 'BEFORE_ASYNC_WITH' 283s 283s tests/test_embed_kernel.py:69: OSError 283s _____________________ test_ipython_start_kernel_no_userns ______________________ 283s 283s @flaky(max_runs=3) 283s def test_ipython_start_kernel_no_userns(): 283s # Issue #4188 - user_ns should be passed to shell as None, not {} 283s cmd = dedent( 283s """ 283s from ipykernel.kernelapp import launch_new_instance 283s launch_new_instance() 283s """ 283s ) 283s 283s > with setup_kernel(cmd) as client: 283s ^^^^^^^^^^^^^^^^^ 283s 283s tests/test_start_kernel.py:56: 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s /usr/lib/python3.14/contextlib.py:141: in __enter__ 283s return next(self.gen) 283s ^^^^^^^^^^^^^^ 283s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 283s 283s cmd = '\nfrom ipykernel.kernelapp import launch_new_instance\nlaunch_new_instance()\n' 283s 283s @contextmanager 283s def setup_kernel(cmd): 283s """start an embedded kernel in a subprocess, and wait for it to be ready 283s 283s Returns 283s ------- 283s kernel_manager: connected KernelManager instance 283s """ 283s 283s def connection_file_ready(connection_file): 283s """Check if connection_file is a readable json file.""" 283s if not os.path.exists(connection_file): 283s return False 283s try: 283s with open(connection_file) as f: 283s json.load(f) 283s return True 283s except ValueError: 283s return False 283s 283s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 283s try: 283s connection_file = os.path.join( 283s paths.jupyter_runtime_dir(), 283s "kernel-%i.json" % kernel.pid, 283s ) 283s # wait for connection file to exist, timeout after 5s 283s tic = time.time() 283s while ( 283s not connection_file_ready(connection_file) 283s and kernel.poll() is None 283s and time.time() < tic + SETUP_TIMEOUT 283s ): 283s time.sleep(0.1) 283s 283s # Wait 100ms for the writing to finish 283s time.sleep(0.1) 283s 283s if kernel.poll() is not None: 283s o, e = kernel.communicate() 283s raise OSError("Kernel failed to start:\n%s" % e) 283s 283s if not os.path.exists(connection_file): 283s if kernel.poll() is None: 283s kernel.terminate() 283s > raise OSError("Connection file %r never arrived" % connection_file) 283s E OSError: Connection file '/home/ubuntu/.local/share/jupyter/runtime/kernel-2677.json' never arrived 283s 283s tests/test_embed_kernel.py:74: OSError 283s =============================== warnings summary =============================== 283s ../../../usr/lib/python3/dist-packages/jupyter_client/connect.py:22 283s /usr/lib/python3/dist-packages/jupyter_client/connect.py:22: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs 283s given by the platformdirs library. To remove this warning and 283s see the appropriate new directories, set the environment variable 283s `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. 283s The use of platformdirs will be the default in `jupyter_core` v6 283s from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write 283s 283s tests/test_eventloop.py::test_asyncio_interrupt 283s /usr/lib/python3/dist-packages/_pytest/threadexception.py:58: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-14 (trigger_stop) 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3.14/threading.py", line 1081, in _bootstrap_inner 283s self._context.run(self.run) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^ 283s File "/usr/lib/python3.14/threading.py", line 1023, in run 283s self._target(*self._args, **self._kwargs) 283s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/tmp/autopkgtest.hVe4uT/autopkgtest_tmp/tests/test_embed_kernel.py", line 209, in trigger_stop 283s app.io_loop.add_callback(app.io_loop.stop) 283s ^^^^^^^^^^^ 283s AttributeError: 'IPKernelApp' object has no attribute 'io_loop'. Did you mean: 'trio_loop'? 283s 283s Enable tracemalloc to get traceback where the object was allocated. 283s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 283s warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) 283s 283s tests/test_io.py::test_outstream 283s /usr/lib/python3/dist-packages/zmq/eventloop/zmqstream.py:542: UserWarning: Unregistering FD 76 after closing socket. This could result in unregistering handlers for the wrong socket. Please use stream.close() instead of closing the socket directly. 283s self.close() 283s 283s tests/test_zmq_shell.py::test_magics 283s tests/test_zmq_shell.py::test_zmq_interactive_shell 283s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=1820) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 283s pid, fd = os.forkpty() 283s 283s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 283s ===Flaky Test Report=== 283s 283s test_interface failed (1 runs remaining out of 2). 283s 283s 'BEFORE_ASYNC_WITH' 283s [, , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_interface failed; it passed 0 out of the required 1 times. 283s 283s 'BEFORE_ASYNC_WITH' 283s [, , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_basic failed (2 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 6, in 283s go() 283s ~~^^ 283s File "", line 5, in go 283s embed_kernel() 283s ~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s app.initialize([]) 283s ~~~~~~~~~~~~~~^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_basic failed (1 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 6, in 283s go() 283s ~~^^ 283s File "", line 5, in go 283s embed_kernel() 283s ~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s app.initialize([]) 283s ~~~~~~~~~~~~~~^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_basic failed; it passed 0 out of the required 1 times. 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 6, in 283s go() 283s ~~^^ 283s File "", line 5, in go 283s embed_kernel() 283s ~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s app.initialize([]) 283s ~~~~~~~~~~~~~~^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_namespace failed (2 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 6, in 283s go() 283s ~~^^ 283s File "", line 5, in go 283s embed_kernel() 283s ~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s app.initialize([]) 283s ~~~~~~~~~~~~~~^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_namespace failed (1 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 6, in 283s go() 283s ~~^^ 283s File "", line 5, in go 283s embed_kernel() 283s ~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s app.initialize([]) 283s ~~~~~~~~~~~~~~^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_namespace failed; it passed 0 out of the required 1 times. 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 6, in 283s go() 283s ~~^^ 283s File "", line 5, in go 283s embed_kernel() 283s ~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s app.initialize([]) 283s ~~~~~~~~~~~~~~^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_reentrant failed (2 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 8, in 283s while True: go() 283s ~~^^ 283s File "", line 5, in go 283s embed_kernel() 283s ~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s app.initialize([]) 283s ~~~~~~~~~~~~~~^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_reentrant failed (1 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 8, in 283s while True: go() 283s ~~^^ 283s File "", line 5, in go 283s embed_kernel() 283s ~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 283s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 283s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 283s app.initialize([]) 283s ~~~~~~~~~~~~~~^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_embed_kernel_reentrant failed; it passed 0 out of the required 1 times. 283s 283s Connection file '/home/ubuntu/.local/share/jupyter/runtime/kernel-2213.json' never arrived 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_subprocess_print passed 1 out of the required 1 times. Success! 283s test_subprocess_noprint passed 1 out of the required 1 times. Success! 283s test_subprocess_error passed 1 out of the required 1 times. Success! 283s test_ipython_start_kernel_userns failed (2 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 4, in 283s launch_new_instance(user_ns=ns) 283s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 283s app.initialize(argv) 283s ~~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_ipython_start_kernel_userns failed (1 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 4, in 283s launch_new_instance(user_ns=ns) 283s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 283s app.initialize(argv) 283s ~~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_ipython_start_kernel_userns failed; it passed 0 out of the required 1 times. 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 4, in 283s launch_new_instance(user_ns=ns) 283s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 283s app.initialize(argv) 283s ~~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_ipython_start_kernel_no_userns failed (2 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 3, in 283s launch_new_instance() 283s ~~~~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 283s app.initialize(argv) 283s ~~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_ipython_start_kernel_no_userns failed (1 runs remaining out of 3). 283s 283s Kernel failed to start: 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 283s from ._pydevd_sys_monitoring_cython import * 283s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 283s from _pydevd_bundle_ext import pydevd_cython as mod 283s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 283s from _pydevd_bundle import pydevd_cython as mod 283s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 283s from _pydevd_bundle.pydevd_cython_wrapper import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 283s mod = getattr(__import__(check_name), mod_name) 283s ~~~~~~~~~~^^^^^^^^^^^^ 283s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_32' 283s 283s During handling of the above exception, another exception occurred: 283s 283s Traceback (most recent call last): 283s File "", line 3, in 283s launch_new_instance() 283s ~~~~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 283s app.initialize(argv) 283s ~~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 283s return method(app, *args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 283s self.init_kernel() 283s ~~~~~~~~~~~~~~~~^^ 283s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 283s kernel = kernel_factory( 283s parent=self, 283s ...<11 lines>... 283s user_ns=self.user_ns, 283s ) 283s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 283s inst = cls(*args, **kwargs) 283s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 283s from .debugger import Debugger, _is_debugpy_available 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 283s raise e 283s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 283s from debugpy.server import api # noqa: F401 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 283s import debugpy._vendored.force_pydevd # noqa 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 283s preimport('pydevd', [ 283s ~~~~~~~~~^^^^^^^^^^^^ 283s '_pydev_bundle', 283s ^^^^^^^^^^^^^^^^ 283s ...<5 lines>... 283s 'pydevd', 283s ^^^^^^^^^ 283s ]) 283s ^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 283s import_module(name) 283s ~~~~~~~~~~~~~^^^^^^ 283s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 283s return _bootstrap._gcd_import(name[level:], package, level) 283s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 283s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 283s from _pydevd_bundle import pydevd_vars 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 283s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 283s from _pydevd_sys_monitoring import pydevd_sys_monitoring 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 283s from ._pydevd_sys_monitoring import * 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 283s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 283s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 283s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 283s ...<4 lines>... 283s ) # @UnusedImport 283s ^ 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 283s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 283s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 283s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 283s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 283s ...<4 lines>... 283s ) 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 283s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 283s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 283s _opcode.opmap["BEFORE_ASYNC_WITH"], 283s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 283s KeyError: 'BEFORE_ASYNC_WITH' 283s 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s test_ipython_start_kernel_no_userns failed; it passed 0 out of the required 1 times. 283s 283s Connection file '/home/ubuntu/.local/share/jupyter/runtime/kernel-2677.json' never arrived 283s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 283s 283s ===End Flaky Test Report=== 283s =========================== short test summary info ============================ 283s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_complete 283s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_execute 283s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_history 283s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_inspect 283s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_interface 283s FAILED tests/test_embed_kernel.py::test_embed_kernel_basic - OSError: Kernel ... 283s FAILED tests/test_embed_kernel.py::test_embed_kernel_namespace - OSError: Ker... 283s FAILED tests/test_embed_kernel.py::test_embed_kernel_reentrant - OSError: Con... 283s FAILED tests/test_embed_kernel.py::test_embed_kernel_func - KeyError: 'BEFORE... 283s FAILED tests/test_io.py::test_event_pipe_gc - Failed: async def functions are... 283s FAILED tests/test_kernel_direct.py::test_direct_kernel_info_request - Failed:... 283s FAILED tests/test_kernel_direct.py::test_direct_execute_request - Failed: asy... 283s FAILED tests/test_kernel_direct.py::test_direct_execute_request_aborting - Fa... 283s FAILED tests/test_kernel_direct.py::test_direct_execute_request_error - Faile... 283s FAILED tests/test_kernel_direct.py::test_complete_request - Failed: async def... 283s FAILED tests/test_kernel_direct.py::test_inspect_request - Failed: async def ... 283s FAILED tests/test_kernel_direct.py::test_history_request - Failed: async def ... 283s FAILED tests/test_kernel_direct.py::test_comm_info_request - Failed: async de... 283s FAILED tests/test_kernel_direct.py::test_direct_interrupt_request - Failed: a... 283s FAILED tests/test_kernel_direct.py::test_direct_shutdown_request - Failed: as... 283s FAILED tests/test_kernel_direct.py::test_is_complete_request - Failed: async ... 283s FAILED tests/test_kernel_direct.py::test_direct_debug_request - Failed: async... 283s FAILED tests/test_kernel_direct.py::test_deprecated_features - Failed: async ... 283s FAILED tests/test_kernel_direct.py::test_process_control - Failed: async def ... 283s FAILED tests/test_kernel_direct.py::test_dispatch_shell - Failed: async def f... 283s FAILED tests/test_kernel_direct.py::test_do_one_iteration - Failed: async def... 283s FAILED tests/test_kernel_direct.py::test_publish_debug_event - Failed: async ... 283s FAILED tests/test_kernel_direct.py::test_connect_request - Failed: async def ... 283s FAILED tests/test_kernel_direct.py::test_send_interrupt_children - Failed: as... 283s FAILED tests/test_kernelspec.py::test_install_kernelspec - traitlets.config.c... 283s FAILED tests/test_start_kernel.py::test_ipython_start_kernel_userns - OSError... 283s FAILED tests/test_start_kernel.py::test_ipython_start_kernel_no_userns - OSEr... 283s ERROR tests/inprocess/test_kernel.py::test_with_cell_id - KeyError: 'BEFORE_A... 283s ERROR tests/inprocess/test_kernel.py::test_pylab - KeyError: 'BEFORE_ASYNC_WITH' 283s ERROR tests/inprocess/test_kernel.py::test_raw_input - KeyError: 'BEFORE_ASYN... 283s ERROR tests/inprocess/test_kernel.py::test_stdout - KeyError: 'BEFORE_ASYNC_W... 283s ERROR tests/inprocess/test_kernel.py::test_getpass_stream - KeyError: 'BEFORE... 283s ERROR tests/inprocess/test_kernel.py::test_do_execute - KeyError: 'BEFORE_ASY... 283s ERROR tests/test_comm.py::test_comm_in_manager - KeyError: 'BEFORE_ASYNC_WITH' 283s ERROR tests/test_ipkernel_direct.py::test_properties - KeyError: 'BEFORE_ASYN... 283s ERROR tests/test_ipkernel_direct.py::test_direct_kernel_info_request - KeyErr... 283s ERROR tests/test_ipkernel_direct.py::test_direct_execute_request - KeyError: ... 283s ERROR tests/test_ipkernel_direct.py::test_direct_execute_request_aborting - K... 283s ERROR tests/test_ipkernel_direct.py::test_complete_request - KeyError: 'BEFOR... 283s ERROR tests/test_ipkernel_direct.py::test_inspect_request - KeyError: 'BEFORE... 283s ERROR tests/test_ipkernel_direct.py::test_history_request - KeyError: 'BEFORE... 283s ERROR tests/test_ipkernel_direct.py::test_comm_info_request - KeyError: 'BEFO... 283s ERROR tests/test_ipkernel_direct.py::test_direct_interrupt_request - KeyError... 283s ERROR tests/test_ipkernel_direct.py::test_is_complete_request - KeyError: 'BE... 283s ERROR tests/test_ipkernel_direct.py::test_do_apply - KeyError: 'BEFORE_ASYNC_... 283s ERROR tests/test_ipkernel_direct.py::test_direct_debug_request - KeyError: 'B... 283s ERROR tests/test_ipkernel_direct.py::test_direct_clear - KeyError: 'BEFORE_AS... 283s ERROR tests/test_ipkernel_direct.py::test_cancel_on_sigint - KeyError: 'BEFOR... 283s ERROR tests/test_ipkernel_direct.py::test_dispatch_debugpy - KeyError: 'BEFOR... 283s ERROR tests/test_ipkernel_direct.py::test_start - KeyError: 'BEFORE_ASYNC_WITH' 283s ERROR tests/test_ipkernel_direct.py::test_start_no_debugpy - KeyError: 'BEFOR... 283s ERROR tests/test_ipkernel_direct.py::test_finish_metadata - KeyError: 'BEFORE... 283s ERROR tests/test_ipkernel_direct.py::test_do_debug_request - KeyError: 'BEFOR... 283s = 32 failed, 110 passed, 17 skipped, 1 deselected, 5 warnings, 26 errors in 102.43s (0:01:42) = 285s autopkgtest [11:40:37]: test pytest: -----------------------] 289s autopkgtest [11:40:41]: test pytest: - - - - - - - - - - results - - - - - - - - - - 289s pytest FAIL non-zero exit status 1 293s autopkgtest [11:40:45]: @@@@@@@@@@@@@@@@@@@@ summary 293s pytest FAIL non-zero exit status 1