0s autopkgtest [10:48:03]: starting date and time: 2025-11-17 10:48:03+0000 0s autopkgtest [10:48:03]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [10:48:03]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.5nreg2th/out --timeout-copy=6000 -a i386 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults --apt-upgrade ipykernel --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 --env=ADT_TEST_TRIGGERS=python3-defaults/3.13.7-2 -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-cpu2-ram4-disk20-amd64 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@sto01-8.secgroup --name adt-resolute-i386-ipykernel-20251117-104802-juju-7f2275-prod-proposed-migration-environment-2-f6a1014d-c27d-4747-828d-3e86df672398 --image adt/ubuntu-resolute-amd64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-autopkgtest-workers-amd64 -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 4s Creating nova instance adt-resolute-i386-ipykernel-20251117-104802-juju-7f2275-prod-proposed-migration-environment-2-f6a1014d-c27d-4747-828d-3e86df672398 from image adt/ubuntu-resolute-amd64-server-20251117.img (UUID 9762b0cc-7c5b-4854-acd5-cc74ad0de8c6)... 82s autopkgtest [10:49:25]: testbed dpkg architecture: amd64 83s autopkgtest [10:49:26]: testbed apt version: 3.1.11 83s autopkgtest [10:49:26]: @@@@@@@@@@@@@@@@@@@@ test bed setup 83s autopkgtest [10:49:26]: testbed release detected to be: None 84s autopkgtest [10:49:27]: updating testbed package index (apt update) 84s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 84s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 84s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 84s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 84s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [881 kB] 84s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 84s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [80.3 kB] 84s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 84s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 Packages [158 kB] 84s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/main i386 Packages [118 kB] 84s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 c-n-f Metadata [3128 B] 84s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/restricted i386 Packages [3744 B] 84s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 Packages [64.6 kB] 84s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/restricted amd64 c-n-f Metadata [336 B] 85s Get:15 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 Packages [614 kB] 85s Get:16 http://ftpmaster.internal/ubuntu resolute-proposed/universe i386 Packages [282 kB] 85s Get:17 http://ftpmaster.internal/ubuntu resolute-proposed/universe amd64 c-n-f Metadata [22.2 kB] 85s Get:18 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 Packages [13.4 kB] 85s Get:19 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse i386 Packages [6516 B] 85s Get:20 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse amd64 c-n-f Metadata [680 B] 87s Fetched 2367 kB in 1s (3355 kB/s) 88s Reading package lists... 88s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 88s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 88s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 88s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 89s Reading package lists... 89s Reading package lists... 89s Building dependency tree... 89s Reading state information... 89s Calculating upgrade... 89s The following packages will be upgraded: 89s libpython3-stdlib python3 python3-minimal usbutils 89s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 89s Need to get 146 kB of archives. 89s After this operation, 0 B of additional disk space will be used. 89s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-minimal amd64 3.13.7-2 [27.8 kB] 89s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3 amd64 3.13.7-2 [23.9 kB] 89s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 libpython3-stdlib amd64 3.13.7-2 [10.6 kB] 89s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 usbutils amd64 1:019-1 [83.9 kB] 89s dpkg-preconfigure: unable to re-open stdin: No such file or directory 89s Fetched 146 kB in 0s (12.2 MB/s) 90s (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 ... 83372 files and directories currently installed.) 90s Preparing to unpack .../python3-minimal_3.13.7-2_amd64.deb ... 90s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 90s Setting up python3-minimal (3.13.7-2) ... 90s (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 ... 83372 files and directories currently installed.) 90s Preparing to unpack .../python3_3.13.7-2_amd64.deb ... 90s running python pre-rtupdate hooks for python3.13... 90s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 90s Preparing to unpack .../libpython3-stdlib_3.13.7-2_amd64.deb ... 90s Unpacking libpython3-stdlib:amd64 (3.13.7-2) over (3.13.7-1) ... 90s Preparing to unpack .../usbutils_1%3a019-1_amd64.deb ... 90s Unpacking usbutils (1:019-1) over (1:018-2) ... 90s Setting up usbutils (1:019-1) ... 90s Setting up libpython3-stdlib:amd64 (3.13.7-2) ... 90s Setting up python3 (3.13.7-2) ... 90s running python rtupdate hooks for python3.13... 90s running python post-rtupdate hooks for python3.13... 90s Processing triggers for man-db (2.13.1-1) ... 91s autopkgtest [10:49:34]: upgrading testbed (apt dist-upgrade and autopurge) 91s Reading package lists... 91s Building dependency tree... 91s Reading state information... 91s Calculating upgrade... 91s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 91s Reading package lists... 91s Building dependency tree... 91s Reading state information... 91s Solving dependencies... 92s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 94s autopkgtest [10:49:37]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 10:00:33 UTC 2025 94s autopkgtest [10:49:37]: @@@@@@@@@@@@@@@@@@@@ apt-source ipykernel 95s Get:1 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (dsc) [2800 B] 95s Get:2 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (tar) [165 kB] 95s Get:3 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (diff) [8544 B] 95s gpgv: Signature made Mon Dec 16 01:06:00 2024 UTC 95s gpgv: using RSA key AC0A4FF12611B6FCCF01C111393587D97D86500B 95s gpgv: Can't check signature: No public key 95s dpkg-source: warning: cannot verify inline signature for ./ipykernel_6.29.5-2.dsc: no acceptable signature found 95s autopkgtest [10:49:38]: testing package ipykernel version 6.29.5-2 95s autopkgtest [10:49:38]: build not needed 96s autopkgtest [10:49:39]: test pytest: preparing testbed 96s Reading package lists... 96s Building dependency tree... 96s Reading state information... 96s Solving dependencies... 96s The following NEW packages will be installed: 96s gdb libbabeltrace1 libipt2 libnorm1t64 libpgm-5.3-0t64 libpython3.14-minimal 96s libpython3.14-stdlib libsodium23 libsource-highlight-common 96s libsource-highlight4t64 libzmq5 python3-all python3-asttokens 96s python3-async-generator python3-comm python3-coverage python3-debugpy 96s python3-decorator python3-executing python3-flaky python3-iniconfig 96s python3-ipykernel python3-ipyparallel python3-ipython python3-jedi 96s python3-jupyter-client python3-jupyter-core python3-matplotlib-inline 96s python3-nest-asyncio python3-outcome python3-parso python3-platformdirs 96s python3-pluggy python3-prompt-toolkit python3-psutil python3-pure-eval 96s python3-pytest python3-pytest-asyncio python3-pytest-timeout python3-sniffio 96s python3-sortedcontainers python3-stack-data python3-tornado python3-tqdm 96s python3-traitlets python3-trio python3-typeshed python3-wcwidth python3-zmq 96s python3.14 python3.14-minimal 96s 0 upgraded, 51 newly installed, 0 to remove and 0 not upgraded. 96s Need to get 20.7 MB of archives. 96s After this operation, 88.1 MB of additional disk space will be used. 96s Get:1 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-minimal amd64 3.14.0-4 [906 kB] 97s Get:2 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14-minimal amd64 3.14.0-4 [2559 kB] 97s Get:3 http://ftpmaster.internal/ubuntu resolute/main amd64 libbabeltrace1 amd64 1.5.11-4build3 [166 kB] 97s Get:4 http://ftpmaster.internal/ubuntu resolute/main amd64 libipt2 amd64 2.1.2-3 [49.2 kB] 97s Get:5 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight-common all 3.1.9-4.3build1 [64.2 kB] 97s Get:6 http://ftpmaster.internal/ubuntu resolute/main amd64 libsource-highlight4t64 amd64 3.1.9-4.3build1 [258 kB] 97s Get:7 http://ftpmaster.internal/ubuntu resolute/main amd64 gdb amd64 16.3-1ubuntu2 [4218 kB] 97s Get:8 http://ftpmaster.internal/ubuntu resolute/universe amd64 libnorm1t64 amd64 1.5.9+dfsg-4 [158 kB] 97s Get:9 http://ftpmaster.internal/ubuntu resolute/universe amd64 libpgm-5.3-0t64 amd64 5.3.128~dfsg-2.1build1 [167 kB] 97s Get:10 http://ftpmaster.internal/ubuntu resolute/main amd64 libpython3.14-stdlib amd64 3.14.0-4 [2397 kB] 97s Get:11 http://ftpmaster.internal/ubuntu resolute/main amd64 libsodium23 amd64 1.0.18-1build3 [161 kB] 97s Get:12 http://ftpmaster.internal/ubuntu resolute/universe amd64 libzmq5 amd64 4.3.5-1build2 [260 kB] 97s Get:13 http://ftpmaster.internal/ubuntu resolute/main amd64 python3.14 amd64 3.14.0-4 [805 kB] 97s Get:14 http://ftpmaster.internal/ubuntu resolute-proposed/main amd64 python3-all amd64 3.13.7-2 [890 B] 97s Get:15 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-asttokens all 3.0.0-2 [20.5 kB] 97s Get:16 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-async-generator all 1.10-7 [18.1 kB] 97s Get:17 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-traitlets all 5.14.3+really5.14.3-1 [71.5 kB] 97s Get:18 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-comm all 0.2.1-1 [7016 B] 97s Get:19 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-coverage amd64 7.8.2+dfsg1-1 [157 kB] 97s Get:20 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-debugpy amd64 1.8.12+ds-1ubuntu1 [778 kB] 97s Get:21 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-decorator all 5.2.1-2 [28.1 kB] 97s Get:22 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-executing all 2.2.0-0.2 [25.0 kB] 97s Get:23 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-flaky all 3.8.1-3 [16.8 kB] 97s Get:24 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-iniconfig all 2.1.0-1 [6840 B] 97s Get:25 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-parso all 0.8.5-1 [68.0 kB] 97s Get:26 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 97s Get:27 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jedi all 0.19.1+ds1-1 [693 kB] 97s Get:28 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-matplotlib-inline all 0.1.7-1 [9186 B] 97s Get:29 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-wcwidth all 0.2.13+dfsg1-1 [26.3 kB] 97s Get:30 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-prompt-toolkit all 3.0.52-1 [258 kB] 97s Get:31 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pure-eval all 0.2.3-1 [11.4 kB] 97s Get:32 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-stack-data all 0.6.3-1 [22.0 kB] 97s Get:33 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipython all 8.35.0-2 [575 kB] 97s Get:34 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-platformdirs all 4.3.7-1 [16.9 kB] 97s Get:35 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-core all 5.7.2-5 [28.1 kB] 97s Get:36 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-psutil amd64 7.1.0-1ubuntu1 [191 kB] 97s Get:37 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-tornado amd64 6.5.2-3 [304 kB] 97s Get:38 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-zmq amd64 27.1.0-1 [234 kB] 97s Get:39 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-jupyter-client all 8.6.3-3 [78.4 kB] 97s Get:40 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-nest-asyncio all 1.5.4-1 [6256 B] 97s Get:41 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipykernel all 6.29.5-2 [82.7 kB] 97s Get:42 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-tqdm all 4.67.1-5 [92.1 kB] 97s Get:43 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-ipyparallel all 8.8.0-5 [2506 kB] 97s Get:44 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-outcome all 1.2.0-2 [6208 B] 97s Get:45 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pluggy all 1.6.0-1 [21.0 kB] 97s Get:46 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest all 8.3.5-2 [252 kB] 97s Get:47 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest-asyncio all 0.25.1-1 [17.0 kB] 97s Get:48 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-pytest-timeout all 2.3.1-2 [22.2 kB] 97s Get:49 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-sniffio all 1.3.1-1 [7262 B] 97s Get:50 http://ftpmaster.internal/ubuntu resolute/main amd64 python3-sortedcontainers all 2.4.0-2 [27.6 kB] 97s Get:51 http://ftpmaster.internal/ubuntu resolute/universe amd64 python3-trio all 0.29.0-1 [330 kB] 97s Fetched 20.7 MB in 1s (24.4 MB/s) 97s Selecting previously unselected package libpython3.14-minimal:amd64. 97s (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 83372 files and directories currently installed.) 97s Preparing to unpack .../00-libpython3.14-minimal_3.14.0-4_amd64.deb ... 97s Unpacking libpython3.14-minimal:amd64 (3.14.0-4) ... 98s Selecting previously unselected package python3.14-minimal. 98s Preparing to unpack .../01-python3.14-minimal_3.14.0-4_amd64.deb ... 98s Unpacking python3.14-minimal (3.14.0-4) ... 98s Selecting previously unselected package libbabeltrace1:amd64. 98s Preparing to unpack .../02-libbabeltrace1_1.5.11-4build3_amd64.deb ... 98s Unpacking libbabeltrace1:amd64 (1.5.11-4build3) ... 98s Selecting previously unselected package libipt2. 98s Preparing to unpack .../03-libipt2_2.1.2-3_amd64.deb ... 98s Unpacking libipt2 (2.1.2-3) ... 98s Selecting previously unselected package libsource-highlight-common. 98s Preparing to unpack .../04-libsource-highlight-common_3.1.9-4.3build1_all.deb ... 98s Unpacking libsource-highlight-common (3.1.9-4.3build1) ... 98s Selecting previously unselected package libsource-highlight4t64:amd64. 98s Preparing to unpack .../05-libsource-highlight4t64_3.1.9-4.3build1_amd64.deb ... 98s Unpacking libsource-highlight4t64:amd64 (3.1.9-4.3build1) ... 98s Selecting previously unselected package gdb. 98s Preparing to unpack .../06-gdb_16.3-1ubuntu2_amd64.deb ... 98s Unpacking gdb (16.3-1ubuntu2) ... 98s Selecting previously unselected package libnorm1t64:amd64. 98s Preparing to unpack .../07-libnorm1t64_1.5.9+dfsg-4_amd64.deb ... 98s Unpacking libnorm1t64:amd64 (1.5.9+dfsg-4) ... 98s Selecting previously unselected package libpgm-5.3-0t64:amd64. 98s Preparing to unpack .../08-libpgm-5.3-0t64_5.3.128~dfsg-2.1build1_amd64.deb ... 98s Unpacking libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build1) ... 98s Selecting previously unselected package libpython3.14-stdlib:amd64. 98s Preparing to unpack .../09-libpython3.14-stdlib_3.14.0-4_amd64.deb ... 98s Unpacking libpython3.14-stdlib:amd64 (3.14.0-4) ... 98s Selecting previously unselected package libsodium23:amd64. 98s Preparing to unpack .../10-libsodium23_1.0.18-1build3_amd64.deb ... 98s Unpacking libsodium23:amd64 (1.0.18-1build3) ... 98s Selecting previously unselected package libzmq5:amd64. 98s Preparing to unpack .../11-libzmq5_4.3.5-1build2_amd64.deb ... 98s Unpacking libzmq5:amd64 (4.3.5-1build2) ... 98s Selecting previously unselected package python3.14. 98s Preparing to unpack .../12-python3.14_3.14.0-4_amd64.deb ... 98s Unpacking python3.14 (3.14.0-4) ... 98s Selecting previously unselected package python3-all. 98s Preparing to unpack .../13-python3-all_3.13.7-2_amd64.deb ... 98s Unpacking python3-all (3.13.7-2) ... 98s Selecting previously unselected package python3-asttokens. 98s Preparing to unpack .../14-python3-asttokens_3.0.0-2_all.deb ... 98s Unpacking python3-asttokens (3.0.0-2) ... 98s Selecting previously unselected package python3-async-generator. 98s Preparing to unpack .../15-python3-async-generator_1.10-7_all.deb ... 98s Unpacking python3-async-generator (1.10-7) ... 98s Selecting previously unselected package python3-traitlets. 98s Preparing to unpack .../16-python3-traitlets_5.14.3+really5.14.3-1_all.deb ... 98s Unpacking python3-traitlets (5.14.3+really5.14.3-1) ... 98s Selecting previously unselected package python3-comm. 98s Preparing to unpack .../17-python3-comm_0.2.1-1_all.deb ... 98s Unpacking python3-comm (0.2.1-1) ... 98s Selecting previously unselected package python3-coverage. 98s Preparing to unpack .../18-python3-coverage_7.8.2+dfsg1-1_amd64.deb ... 98s Unpacking python3-coverage (7.8.2+dfsg1-1) ... 98s Selecting previously unselected package python3-debugpy. 98s Preparing to unpack .../19-python3-debugpy_1.8.12+ds-1ubuntu1_amd64.deb ... 98s Unpacking python3-debugpy (1.8.12+ds-1ubuntu1) ... 98s Selecting previously unselected package python3-decorator. 98s Preparing to unpack .../20-python3-decorator_5.2.1-2_all.deb ... 98s Unpacking python3-decorator (5.2.1-2) ... 98s Selecting previously unselected package python3-executing. 98s Preparing to unpack .../21-python3-executing_2.2.0-0.2_all.deb ... 98s Unpacking python3-executing (2.2.0-0.2) ... 98s Selecting previously unselected package python3-flaky. 98s Preparing to unpack .../22-python3-flaky_3.8.1-3_all.deb ... 98s Unpacking python3-flaky (3.8.1-3) ... 98s Selecting previously unselected package python3-iniconfig. 98s Preparing to unpack .../23-python3-iniconfig_2.1.0-1_all.deb ... 98s Unpacking python3-iniconfig (2.1.0-1) ... 98s Selecting previously unselected package python3-parso. 98s Preparing to unpack .../24-python3-parso_0.8.5-1_all.deb ... 98s Unpacking python3-parso (0.8.5-1) ... 98s Selecting previously unselected package python3-typeshed. 98s Preparing to unpack .../25-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 98s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 98s Selecting previously unselected package python3-jedi. 98s Preparing to unpack .../26-python3-jedi_0.19.1+ds1-1_all.deb ... 98s Unpacking python3-jedi (0.19.1+ds1-1) ... 98s Selecting previously unselected package python3-matplotlib-inline. 98s Preparing to unpack .../27-python3-matplotlib-inline_0.1.7-1_all.deb ... 98s Unpacking python3-matplotlib-inline (0.1.7-1) ... 98s Selecting previously unselected package python3-wcwidth. 98s Preparing to unpack .../28-python3-wcwidth_0.2.13+dfsg1-1_all.deb ... 98s Unpacking python3-wcwidth (0.2.13+dfsg1-1) ... 98s Selecting previously unselected package python3-prompt-toolkit. 98s Preparing to unpack .../29-python3-prompt-toolkit_3.0.52-1_all.deb ... 98s Unpacking python3-prompt-toolkit (3.0.52-1) ... 98s Selecting previously unselected package python3-pure-eval. 98s Preparing to unpack .../30-python3-pure-eval_0.2.3-1_all.deb ... 98s Unpacking python3-pure-eval (0.2.3-1) ... 98s Selecting previously unselected package python3-stack-data. 98s Preparing to unpack .../31-python3-stack-data_0.6.3-1_all.deb ... 98s Unpacking python3-stack-data (0.6.3-1) ... 98s Selecting previously unselected package python3-ipython. 98s Preparing to unpack .../32-python3-ipython_8.35.0-2_all.deb ... 98s Unpacking python3-ipython (8.35.0-2) ... 98s Selecting previously unselected package python3-platformdirs. 98s Preparing to unpack .../33-python3-platformdirs_4.3.7-1_all.deb ... 98s Unpacking python3-platformdirs (4.3.7-1) ... 98s Selecting previously unselected package python3-jupyter-core. 98s Preparing to unpack .../34-python3-jupyter-core_5.7.2-5_all.deb ... 98s Unpacking python3-jupyter-core (5.7.2-5) ... 98s Selecting previously unselected package python3-psutil. 98s Preparing to unpack .../35-python3-psutil_7.1.0-1ubuntu1_amd64.deb ... 98s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 98s Selecting previously unselected package python3-tornado. 98s Preparing to unpack .../36-python3-tornado_6.5.2-3_amd64.deb ... 98s Unpacking python3-tornado (6.5.2-3) ... 98s Selecting previously unselected package python3-zmq. 98s Preparing to unpack .../37-python3-zmq_27.1.0-1_amd64.deb ... 98s Unpacking python3-zmq (27.1.0-1) ... 98s Selecting previously unselected package python3-jupyter-client. 98s Preparing to unpack .../38-python3-jupyter-client_8.6.3-3_all.deb ... 98s Unpacking python3-jupyter-client (8.6.3-3) ... 98s Selecting previously unselected package python3-nest-asyncio. 98s Preparing to unpack .../39-python3-nest-asyncio_1.5.4-1_all.deb ... 98s Unpacking python3-nest-asyncio (1.5.4-1) ... 98s Selecting previously unselected package python3-ipykernel. 98s Preparing to unpack .../40-python3-ipykernel_6.29.5-2_all.deb ... 98s Unpacking python3-ipykernel (6.29.5-2) ... 98s Selecting previously unselected package python3-tqdm. 98s Preparing to unpack .../41-python3-tqdm_4.67.1-5_all.deb ... 98s Unpacking python3-tqdm (4.67.1-5) ... 98s Selecting previously unselected package python3-ipyparallel. 98s Preparing to unpack .../42-python3-ipyparallel_8.8.0-5_all.deb ... 98s Unpacking python3-ipyparallel (8.8.0-5) ... 98s Selecting previously unselected package python3-outcome. 98s Preparing to unpack .../43-python3-outcome_1.2.0-2_all.deb ... 98s Unpacking python3-outcome (1.2.0-2) ... 98s Selecting previously unselected package python3-pluggy. 98s Preparing to unpack .../44-python3-pluggy_1.6.0-1_all.deb ... 98s Unpacking python3-pluggy (1.6.0-1) ... 98s Selecting previously unselected package python3-pytest. 98s Preparing to unpack .../45-python3-pytest_8.3.5-2_all.deb ... 98s Unpacking python3-pytest (8.3.5-2) ... 98s Selecting previously unselected package python3-pytest-asyncio. 99s Preparing to unpack .../46-python3-pytest-asyncio_0.25.1-1_all.deb ... 99s Unpacking python3-pytest-asyncio (0.25.1-1) ... 99s Selecting previously unselected package python3-pytest-timeout. 99s Preparing to unpack .../47-python3-pytest-timeout_2.3.1-2_all.deb ... 99s Unpacking python3-pytest-timeout (2.3.1-2) ... 99s Selecting previously unselected package python3-sniffio. 99s Preparing to unpack .../48-python3-sniffio_1.3.1-1_all.deb ... 99s Unpacking python3-sniffio (1.3.1-1) ... 99s Selecting previously unselected package python3-sortedcontainers. 99s Preparing to unpack .../49-python3-sortedcontainers_2.4.0-2_all.deb ... 99s Unpacking python3-sortedcontainers (2.4.0-2) ... 99s Selecting previously unselected package python3-trio. 99s Preparing to unpack .../50-python3-trio_0.29.0-1_all.deb ... 99s Unpacking python3-trio (0.29.0-1) ... 99s Setting up python3-iniconfig (2.1.0-1) ... 99s Setting up python3-sniffio (1.3.1-1) ... 99s Setting up python3-outcome (1.2.0-2) ... 99s Setting up python3-tornado (6.5.2-3) ... 100s Setting up libnorm1t64:amd64 (1.5.9+dfsg-4) ... 100s Setting up python3-pure-eval (0.2.3-1) ... 100s Setting up libsodium23:amd64 (1.0.18-1build3) ... 100s Setting up python3-async-generator (1.10-7) ... 100s Setting up python3-parso (0.8.5-1) ... 100s Setting up python3-asttokens (3.0.0-2) ... 100s Setting up libpython3.14-minimal:amd64 (3.14.0-4) ... 100s Setting up python3-tqdm (4.67.1-5) ... 100s Setting up python3-coverage (7.8.2+dfsg1-1) ... 101s Setting up python3-sortedcontainers (2.4.0-2) ... 101s Setting up python3-platformdirs (4.3.7-1) ... 101s Setting up python3-psutil (7.1.0-1ubuntu1) ... 101s Setting up libsource-highlight-common (3.1.9-4.3build1) ... 101s Setting up libpgm-5.3-0t64:amd64 (5.3.128~dfsg-2.1build1) ... 101s Setting up python3-decorator (5.2.1-2) ... 101s Setting up python3-flaky (3.8.1-3) ... 101s Setting up python3-wcwidth (0.2.13+dfsg1-1) ... 102s Setting up python3-trio (0.29.0-1) ... 102s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 102s Setting up python3-executing (2.2.0-0.2) ... 102s Setting up python3-nest-asyncio (1.5.4-1) ... 103s Setting up libipt2 (2.1.2-3) ... 103s Setting up libbabeltrace1:amd64 (1.5.11-4build3) ... 103s Setting up python3-pluggy (1.6.0-1) ... 103s Setting up python3-traitlets (5.14.3+really5.14.3-1) ... 103s Setting up python3-stack-data (0.6.3-1) ... 103s Setting up python3.14-minimal (3.14.0-4) ... 104s Setting up python3-jupyter-core (5.7.2-5) ... 104s Setting up python3-prompt-toolkit (3.0.52-1) ... 104s Setting up libzmq5:amd64 (4.3.5-1build2) ... 104s Setting up python3-jedi (0.19.1+ds1-1) ... 105s Setting up libpython3.14-stdlib:amd64 (3.14.0-4) ... 105s Setting up python3-pytest (8.3.5-2) ... 105s Setting up libsource-highlight4t64:amd64 (3.1.9-4.3build1) ... 105s Setting up python3-matplotlib-inline (0.1.7-1) ... 105s Setting up python3-comm (0.2.1-1) ... 105s Setting up gdb (16.3-1ubuntu2) ... 105s Setting up python3-ipython (8.35.0-2) ... 106s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 106s return result 106s Setting up python3-zmq (27.1.0-1) ... 106s Setting up python3-pytest-asyncio (0.25.1-1) ... 106s Setting up python3-jupyter-client (8.6.3-3) ... 107s Setting up python3.14 (3.14.0-4) ... 107s Setting up python3-pytest-timeout (2.3.1-2) ... 107s Setting up python3-all (3.13.7-2) ... 107s Setting up python3-debugpy (1.8.12+ds-1ubuntu1) ... 108s Setting up python3-ipykernel (6.29.5-2) ... 108s Setting up python3-ipyparallel (8.8.0-5) ... 109s Processing triggers for systemd (257.9-0ubuntu2) ... 109s Processing triggers for man-db (2.13.1-1) ... 109s Processing triggers for libc-bin (2.42-2ubuntu2) ... 110s autopkgtest [10:49:53]: test environment configured for cross building 110s autopkgtest [10:49:53]: test pytest: [----------------------- 110s + py3versions -s 110s Testing with python3.14: 110s + PYS=python3.14 python3.13 110s + cp -r tests /tmp/autopkgtest.o7kR3P/autopkgtest_tmp 110s + cd /tmp/autopkgtest.o7kR3P/autopkgtest_tmp 110s + echo Testing with python3.14: 110s + timeout 300 python3.14 -m pytest -v -k not test_init_ipc_socket 111s ============================= test session starts ============================== 111s platform linux -- Python 3.14.0, pytest-8.3.5, pluggy-1.6.0 -- /usr/bin/python3.14 111s cachedir: .pytest_cache 111s rootdir: /tmp/autopkgtest.o7kR3P/autopkgtest_tmp 111s plugins: asyncio-0.25.1, timeout-2.3.1, flaky-3.8.1, typeguard-4.4.2 111s asyncio: mode=Mode.STRICT, asyncio_default_fixture_loop_scope=None 111s collecting ... /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:207: PytestDeprecationWarning: The configuration option "asyncio_default_fixture_loop_scope" is unset. 111s The event loop scope for asynchronous fixtures will default to the fixture caching scope. Future versions of pytest-asyncio will default the loop scope for asynchronous fixtures to function scope. Set the default fixture loop scope explicitly in order to avoid unexpected behavior in the future. Valid fixture loop scopes are: "function", "class", "module", "package", "session" 111s 111s warnings.warn(PytestDeprecationWarning(_DEFAULT_FIXTURE_LOOP_SCOPE_UNSET)) 111s collected 186 items / 1 deselected / 185 selected 111s 112s tests/inprocess/test_kernel.py::test_with_cell_id ERROR [ 0%] 112s tests/inprocess/test_kernel.py::test_pylab ERROR [ 1%] 112s tests/inprocess/test_kernel.py::test_raw_input ERROR [ 1%] 112s tests/inprocess/test_kernel.py::test_stdout ERROR [ 2%] 112s tests/inprocess/test_kernel.py::test_capfd SKIPPED (Currently don't ...) [ 2%] 112s tests/inprocess/test_kernel.py::test_getpass_stream ERROR [ 3%] 112s tests/inprocess/test_kernel.py::test_do_execute ERROR [ 3%] 112s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_complete FAILED [ 4%] 113s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_execute FAILED [ 4%] 113s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_history FAILED [ 5%] 113s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_inspect FAILED [ 5%] 113s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_interface FAILED [ 6%] 114s tests/test_async.py::test_async_await PASSED [ 7%] 121s tests/test_async.py::test_async_interrupt[asyncio] PASSED [ 7%] 123s tests/test_async.py::test_async_interrupt[trio] PASSED [ 8%] 124s tests/test_async.py::test_async_interrupt[curio] SKIPPED (Requires c...) [ 8%] 124s tests/test_comm.py::test_comm PASSED [ 9%] 124s tests/test_comm.py::test_comm_manager PASSED [ 9%] 124s tests/test_comm.py::test_comm_in_manager ERROR [ 10%] 124s tests/test_connect.py::test_get_connection_file PASSED [ 10%] 124s tests/test_connect.py::test_get_connection_info PASSED [ 11%] 124s tests/test_connect.py::test_port_bind_failure_raises PASSED [ 11%] 124s tests/test_connect.py::test_port_bind_failure_recovery PASSED [ 12%] 124s tests/test_connect.py::test_port_bind_failure_gives_up_retries PASSED [ 12%] 126s tests/test_debugger.py::test_debug_initialize PASSED [ 13%] 127s tests/test_debugger.py::test_attach_debug PASSED [ 14%] 128s tests/test_debugger.py::test_set_breakpoints PASSED [ 14%] 130s tests/test_debugger.py::test_stop_on_breakpoint PASSED [ 15%] 131s tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines PASSED [ 15%] 133s tests/test_debugger.py::test_rich_inspect_not_at_breakpoint PASSED [ 16%] 134s tests/test_debugger.py::test_rich_inspect_at_breakpoint PASSED [ 16%] 134s tests/test_debugger.py::test_convert_to_long_pathname PASSED [ 17%] 136s tests/test_debugger.py::test_copy_to_globals PASSED [ 17%] 138s tests/test_embed_kernel.py::test_embed_kernel_basic FAILED [ 18%] 140s tests/test_embed_kernel.py::test_embed_kernel_namespace FAILED [ 18%] 141s tests/test_embed_kernel.py::test_embed_kernel_reentrant FAILED [ 19%] 142s tests/test_embed_kernel.py::test_embed_kernel_func NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. 142s 142s To exit, you will have to explicitly quit this process, by either sending 142s "quit" from a client, or using Ctrl-\ in UNIX-like environments. 142s 142s To read more about this, see https://github.com/ipython/ipython/issues/2049 142s 142s 142s To connect another client to this kernel, use: 142s --existing kernel-2855.json 142s FAILED [ 20%] 143s tests/test_eventloop.py::test_asyncio_interrupt PASSED [ 20%] 145s tests/test_eventloop.py::test_tk_loop PASSED [ 21%] 146s tests/test_eventloop.py::test_asyncio_loop PASSED [ 21%] 147s tests/test_eventloop.py::test_enable_gui PASSED [ 22%] 147s tests/test_eventloop.py::test_cocoa_loop SKIPPED (MacOS-only) [ 22%] 147s tests/test_eventloop.py::test_qt_enable_gui SKIPPED (No viable versi...) [ 23%] 147s tests/test_heartbeat.py::test_port_bind_failure_raises PASSED [ 23%] 147s tests/test_heartbeat.py::test_port_bind_success PASSED [ 24%] 147s tests/test_heartbeat.py::test_port_bind_failure_recovery PASSED [ 24%] 147s tests/test_heartbeat.py::test_port_bind_failure_gives_up_retries PASSED [ 25%] 147s tests/test_io.py::test_io_api PASSED [ 25%] 147s tests/test_io.py::test_io_isatty PASSED [ 26%] 147s tests/test_io.py::test_io_thread PASSED [ 27%] 147s tests/test_io.py::test_background_socket PASSED [ 27%] 147s tests/test_io.py::test_outstream PASSED [ 28%] 147s tests/test_io.py::test_event_pipe_gc SKIPPED (async def function and...) [ 28%] 148s tests/test_io.py::test_echo_watch PASSED [ 29%] 149s tests/test_ipkernel_direct.py::test_properties ERROR [ 29%] 149s tests/test_ipkernel_direct.py::test_direct_kernel_info_request ERROR [ 30%] 149s tests/test_ipkernel_direct.py::test_direct_execute_request ERROR [ 30%] 149s tests/test_ipkernel_direct.py::test_direct_execute_request_aborting ERROR [ 31%] 149s tests/test_ipkernel_direct.py::test_complete_request ERROR [ 31%] 149s tests/test_ipkernel_direct.py::test_inspect_request ERROR [ 32%] 150s tests/test_ipkernel_direct.py::test_history_request ERROR [ 32%] 150s tests/test_ipkernel_direct.py::test_comm_info_request ERROR [ 33%] 150s tests/test_ipkernel_direct.py::test_direct_interrupt_request ERROR [ 34%] 150s tests/test_ipkernel_direct.py::test_is_complete_request ERROR [ 34%] 150s tests/test_ipkernel_direct.py::test_do_apply ERROR [ 35%] 150s tests/test_ipkernel_direct.py::test_direct_debug_request ERROR [ 35%] 150s tests/test_ipkernel_direct.py::test_direct_clear ERROR [ 36%] 151s tests/test_ipkernel_direct.py::test_cancel_on_sigint ERROR [ 36%] 151s tests/test_ipkernel_direct.py::test_dispatch_debugpy ERROR [ 37%] 151s tests/test_ipkernel_direct.py::test_start ERROR [ 37%] 151s tests/test_ipkernel_direct.py::test_start_no_debugpy ERROR [ 38%] 151s tests/test_ipkernel_direct.py::test_create_comm PASSED [ 38%] 151s tests/test_ipkernel_direct.py::test_finish_metadata ERROR [ 39%] 151s tests/test_ipkernel_direct.py::test_do_debug_request ERROR [ 40%] 151s tests/test_jsonutil.py::test SKIPPED (json_clean is a no-op) [ 40%] 151s tests/test_jsonutil.py::test_encode_images SKIPPED (json_clean is a ...) [ 41%] 151s tests/test_jsonutil.py::test_lambda SKIPPED (json_clean is a no-op) [ 41%] 151s tests/test_jsonutil.py::test_exception SKIPPED (json_clean is a no-op) [ 42%] 151s tests/test_jsonutil.py::test_unicode_dict SKIPPED (json_clean is a n...) [ 42%] 152s tests/test_kernel.py::test_simple_print PASSED [ 43%] 153s tests/test_kernel.py::test_print_to_correct_cell_from_thread PASSED [ 43%] 155s tests/test_kernel.py::test_print_to_correct_cell_from_child_thread PASSED [ 44%] 156s tests/test_kernel.py::test_print_to_correct_cell_from_asyncio PASSED [ 44%] 156s tests/test_kernel.py::test_capture_fd SKIPPED (Currently don't captu...) [ 45%] 156s tests/test_kernel.py::test_subprocess_peek_at_stream_fileno SKIPPED [ 45%] 156s tests/test_kernel.py::test_sys_path PASSED [ 46%] 157s tests/test_kernel.py::test_sys_path_profile_dir PASSED [ 47%] 159s tests/test_kernel.py::test_subprocess_print PASSED [ 47%] 160s tests/test_kernel.py::test_subprocess_noprint PASSED [ 48%] 161s tests/test_kernel.py::test_subprocess_error PASSED [ 48%] 161s tests/test_kernel.py::test_raw_input PASSED [ 49%] 161s tests/test_kernel.py::test_save_history PASSED [ 49%] 162s tests/test_kernel.py::test_smoke_faulthandler PASSED [ 50%] 162s tests/test_kernel.py::test_help_output PASSED [ 50%] 162s tests/test_kernel.py::test_is_complete PASSED [ 51%] 162s tests/test_kernel.py::test_complete SKIPPED (only run on Windows) [ 51%] 162s tests/test_kernel.py::test_matplotlib_inline_on_import SKIPPED (this...) [ 52%] 163s tests/test_kernel.py::test_message_order PASSED [ 52%] 163s tests/test_kernel.py::test_unc_paths SKIPPED (test only on windows) [ 53%] 163s tests/test_kernel.py::test_shutdown PASSED [ 54%] 165s tests/test_kernel.py::test_interrupt_during_input PASSED [ 54%] 167s tests/test_kernel.py::test_interrupt_with_message PASSED [ 55%] 169s tests/test_kernel.py::test_interrupt_during_pdb_set_trace PASSED [ 55%] 172s tests/test_kernel.py::test_control_thread_priority PASSED [ 56%] 172s tests/test_kernel.py::test_shutdown_subprocesses SKIPPED (Stalls on ...) [ 56%] 172s tests/test_kernel_direct.py::test_direct_kernel_info_request SKIPPED [ 57%] 172s tests/test_kernel_direct.py::test_direct_execute_request SKIPPED (as...) [ 57%] 172s tests/test_kernel_direct.py::test_direct_execute_request_aborting SKIPPED [ 58%] 172s tests/test_kernel_direct.py::test_direct_execute_request_error SKIPPED [ 58%] 172s tests/test_kernel_direct.py::test_complete_request SKIPPED (async de...) [ 59%] 172s tests/test_kernel_direct.py::test_inspect_request SKIPPED (async def...) [ 60%] 172s tests/test_kernel_direct.py::test_history_request SKIPPED (async def...) [ 60%] 172s tests/test_kernel_direct.py::test_comm_info_request SKIPPED (async d...) [ 61%] 172s tests/test_kernel_direct.py::test_direct_interrupt_request SKIPPED (...) [ 61%] 172s tests/test_kernel_direct.py::test_direct_shutdown_request SKIPPED (a...) [ 62%] 172s tests/test_kernel_direct.py::test_is_complete_request SKIPPED (async...) [ 62%] 172s tests/test_kernel_direct.py::test_direct_debug_request SKIPPED (asyn...) [ 63%] 172s tests/test_kernel_direct.py::test_deprecated_features SKIPPED (async...) [ 63%] 172s tests/test_kernel_direct.py::test_process_control SKIPPED (async def...) [ 64%] 172s tests/test_kernel_direct.py::test_should_handle PASSED [ 64%] 172s tests/test_kernel_direct.py::test_dispatch_shell SKIPPED (async def ...) [ 65%] 172s tests/test_kernel_direct.py::test_do_one_iteration SKIPPED (async de...) [ 65%] 172s tests/test_kernel_direct.py::test_publish_debug_event SKIPPED (async...) [ 66%] 172s tests/test_kernel_direct.py::test_connect_request SKIPPED (async def...) [ 67%] 172s tests/test_kernel_direct.py::test_send_interrupt_children SKIPPED (a...) [ 67%] 172s tests/test_kernelapp.py::test_blackhole PASSED [ 68%] 173s tests/test_kernelapp.py::test_start_app PASSED [ 68%] 173s tests/test_kernelapp.py::test_merge_connection_file PASSED [ 69%] 173s tests/test_kernelapp.py::test_trio_loop PASSED [ 69%] 173s tests/test_kernelspec.py::test_make_ipkernel_cmd PASSED [ 70%] 173s tests/test_kernelspec.py::test_get_kernel_dict PASSED [ 70%] 173s tests/test_kernelspec.py::test_get_kernel_dict_with_profile PASSED [ 71%] 173s tests/test_kernelspec.py::test_write_kernel_spec PASSED [ 71%] 173s tests/test_kernelspec.py::test_write_kernel_spec_path PASSED [ 72%] 173s tests/test_kernelspec.py::test_install_kernelspec FAILED [ 72%] 173s tests/test_kernelspec.py::test_install_user PASSED [ 73%] 173s tests/test_kernelspec.py::test_install PASSED [ 74%] 173s tests/test_kernelspec.py::test_install_profile PASSED [ 74%] 173s tests/test_kernelspec.py::test_install_display_name_overrides_profile PASSED [ 75%] 173s tests/test_kernelspec.py::test_install_env[None] PASSED [ 75%] 173s tests/test_kernelspec.py::test_install_env[env1] PASSED [ 76%] 173s tests/test_kernelspec.py::test_install_env[env2] PASSED [ 76%] 173s tests/test_kernelspec.py::test_install_frozen_modules_on PASSED [ 77%] 173s tests/test_kernelspec.py::test_install_frozen_modules_off PASSED [ 77%] 173s tests/test_kernelspec.py::test_install_frozen_modules_no_op SKIPPED [ 78%] 174s tests/test_message_spec.py::test_execute PASSED [ 78%] 174s tests/test_message_spec.py::test_execute_silent PASSED [ 79%] 175s tests/test_message_spec.py::test_execute_error PASSED [ 80%] 175s tests/test_message_spec.py::test_execute_inc PASSED [ 80%] 178s tests/test_message_spec.py::test_execute_stop_on_error PASSED [ 81%] 179s tests/test_message_spec.py::test_non_execute_stop_on_error PASSED [ 81%] 179s tests/test_message_spec.py::test_user_expressions PASSED [ 82%] 180s tests/test_message_spec.py::test_user_expressions_fail PASSED [ 82%] 180s tests/test_message_spec.py::test_oinfo PASSED [ 83%] 180s tests/test_message_spec.py::test_oinfo_found PASSED [ 83%] 181s tests/test_message_spec.py::test_oinfo_detail PASSED [ 84%] 181s tests/test_message_spec.py::test_oinfo_not_found PASSED [ 84%] 182s tests/test_message_spec.py::test_complete PASSED [ 85%] 182s tests/test_message_spec.py::test_kernel_info_request PASSED [ 85%] 183s tests/test_message_spec.py::test_connect_request PASSED [ 86%] 183s tests/test_message_spec.py::test_comm_info_request PASSED [ 87%] 184s tests/test_message_spec.py::test_single_payload PASSED [ 87%] 184s tests/test_message_spec.py::test_is_complete PASSED [ 88%] 184s tests/test_message_spec.py::test_history_range PASSED [ 88%] 185s tests/test_message_spec.py::test_history_tail PASSED [ 89%] 185s tests/test_message_spec.py::test_history_search PASSED [ 89%] 186s tests/test_message_spec.py::test_stream PASSED [ 90%] 186s tests/test_message_spec.py::test_display_data PASSED [ 90%] 186s tests/test_parentpoller.py::test_parent_poller_unix PASSED [ 91%] 186s tests/test_parentpoller.py::test_parent_poller_windows SKIPPED (only...) [ 91%] 186s tests/test_pickleutil.py::test_no_closure PASSED [ 92%] 186s tests/test_pickleutil.py::test_generator_closure PASSED [ 92%] 186s tests/test_pickleutil.py::test_nested_closure PASSED [ 93%] 186s tests/test_pickleutil.py::test_closure PASSED [ 94%] 186s tests/test_pickleutil.py::test_uncan_bytes_buffer PASSED [ 94%] 188s tests/test_start_kernel.py::test_ipython_start_kernel_userns FAILED [ 95%] 190s tests/test_start_kernel.py::test_ipython_start_kernel_no_userns FAILED [ 95%] 190s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_hook_halts_send PASSED [ 96%] 190s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_hook_return_calls_send PASSED [ 96%] 190s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_publisher_creation PASSED [ 97%] 190s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_publish PASSED [ 97%] 190s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_thread_local_hooks PASSED [ 98%] 190s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_unregister_hook PASSED [ 98%] 190s tests/test_zmq_shell.py::test_magics PASSED [ 99%] 190s tests/test_zmq_shell.py::test_zmq_interactive_shell PASSED [100%] 190s 190s ==================================== ERRORS ==================================== 190s _____________________ ERROR at setup of test_with_cell_id ______________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s @pytest.fixture() 190s def kc(): 190s km = InProcessKernelManager() 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernel.py:44: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:9: in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ---------------------------- Captured stderr setup ----------------------------- 190s 0.00s - Debugger warning: It seems that frozen modules are being used, which may 190s 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 190s 0.00s - to python to disable frozen modules. 190s 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. 190s _________________________ ERROR at setup of test_pylab _________________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s @pytest.fixture() 190s def kc(): 190s km = InProcessKernelManager() 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernel.py:44: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _______________________ ERROR at setup of test_raw_input _______________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s @pytest.fixture() 190s def kc(): 190s km = InProcessKernelManager() 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernel.py:44: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ________________________ ERROR at setup of test_stdout _________________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s @pytest.fixture() 190s def kc(): 190s km = InProcessKernelManager() 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernel.py:44: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ____________________ ERROR at setup of test_getpass_stream _____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s @pytest.fixture() 190s def kc(): 190s km = InProcessKernelManager() 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernel.py:44: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ______________________ ERROR at setup of test_do_execute _______________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s @pytest.fixture() 190s def kc(): 190s km = InProcessKernelManager() 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernel.py:44: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ____________________ ERROR at setup of test_comm_in_manager ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ______________________ ERROR at setup of test_properties _______________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ______________ ERROR at setup of test_direct_kernel_info_request _______________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ________________ ERROR at setup of test_direct_execute_request _________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ____________ ERROR at setup of test_direct_execute_request_aborting ____________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ___________________ ERROR at setup of test_complete_request ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ____________________ ERROR at setup of test_inspect_request ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ____________________ ERROR at setup of test_history_request ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ___________________ ERROR at setup of test_comm_info_request ___________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _______________ ERROR at setup of test_direct_interrupt_request ________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s __________________ ERROR at setup of test_is_complete_request __________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _______________________ ERROR at setup of test_do_apply ________________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _________________ ERROR at setup of test_direct_debug_request __________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _____________________ ERROR at setup of test_direct_clear ______________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ___________________ ERROR at setup of test_cancel_on_sigint ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ___________________ ERROR at setup of test_dispatch_debugpy ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _________________________ ERROR at setup of test_start _________________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ___________________ ERROR at setup of test_start_no_debugpy ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ____________________ ERROR at setup of test_finish_metadata ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ___________________ ERROR at setup of test_do_debug_request ____________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 190s ) 190s 190s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s tests/conftest.py:156: in ipkernel 190s kernel = MockIPyKernel() 190s tests/conftest.py:143: in __init__ 190s super().__init__(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s =================================== FAILURES =================================== 190s _________________ InProcessKernelManagerTestCase.test_complete _________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s self = 190s 190s def test_complete(self): 190s """Does requesting completion from an in-process kernel work?""" 190s km = self.km 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernelmanager.py:70: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _________________ InProcessKernelManagerTestCase.test_execute __________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s self = 190s 190s def test_execute(self): 190s """Does executing code in an in-process kernel work?""" 190s km = self.km 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernelmanager.py:60: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _________________ InProcessKernelManagerTestCase.test_history __________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s self = 190s 190s def test_history(self): 190s """Does requesting history from an in-process kernel work?""" 190s km = self.km 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernelmanager.py:99: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s _________________ InProcessKernelManagerTestCase.test_inspect __________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s self = 190s 190s def test_inspect(self): 190s """Does requesting object information from an in-process kernel work?""" 190s km = self.km 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernelmanager.py:83: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ________________ InProcessKernelManagerTestCase.test_interface _________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s self = 190s 190s @flaky 190s def test_interface(self): 190s """Does the in-process kernel manager implement the basic KM interface?""" 190s km = self.km 190s assert not km.has_kernel 190s 190s > km.start_kernel() 190s 190s tests/inprocess/test_kernelmanager.py:30: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 190s self.kernel = InProcessKernel(parent=self, session=self.session) 190s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 190s super().__init__(**traits) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ___________________________ test_embed_kernel_basic ____________________________ 190s 190s @flaky(max_runs=3) 190s def test_embed_kernel_basic(): 190s """IPython.embed_kernel() is basically functional""" 190s cmd = "\n".join( 190s [ 190s "from IPython import embed_kernel", 190s "def go():", 190s " a=5", 190s ' b="hi there"', 190s " embed_kernel()", 190s "go()", 190s "", 190s ] 190s ) 190s 190s > with setup_kernel(cmd) as client: 190s 190s tests/test_embed_kernel.py:109: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3.14/contextlib.py:141: in __enter__ 190s return next(self.gen) 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s cmd = 'from IPython import embed_kernel\ndef go():\n a=5\n b="hi there"\n embed_kernel()\ngo()\n' 190s 190s @contextmanager 190s def setup_kernel(cmd): 190s """start an embedded kernel in a subprocess, and wait for it to be ready 190s 190s Returns 190s ------- 190s kernel_manager: connected KernelManager instance 190s """ 190s 190s def connection_file_ready(connection_file): 190s """Check if connection_file is a readable json file.""" 190s if not os.path.exists(connection_file): 190s return False 190s try: 190s with open(connection_file) as f: 190s json.load(f) 190s return True 190s except ValueError: 190s return False 190s 190s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 190s try: 190s connection_file = os.path.join( 190s paths.jupyter_runtime_dir(), 190s "kernel-%i.json" % kernel.pid, 190s ) 190s # wait for connection file to exist, timeout after 5s 190s tic = time.time() 190s while ( 190s not connection_file_ready(connection_file) 190s and kernel.poll() is None 190s and time.time() < tic + SETUP_TIMEOUT 190s ): 190s time.sleep(0.1) 190s 190s # Wait 100ms for the writing to finish 190s time.sleep(0.1) 190s 190s if kernel.poll() is not None: 190s o, e = kernel.communicate() 190s > raise OSError("Kernel failed to start:\n%s" % e) 190s E OSError: Kernel failed to start: 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s E from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s E from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s E from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s E from _pydevd_bundle.pydevd_cython_wrapper import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s E mod = getattr(__import__(check_name), mod_name) 190s E ~~~~~~~~~~^^^^^^^^^^^^ 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "", line 6, in 190s E go() 190s E ~~^^ 190s E File "", line 5, in go 190s E embed_kernel() 190s E ~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s E real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s E app.initialize([]) 190s E ~~~~~~~~~~~~~~^^^^ 190s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s E return method(app, *args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s E self.init_kernel() 190s E ~~~~~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s E kernel = kernel_factory( 190s E parent=self, 190s E ...<11 lines>... 190s E user_ns=self.user_ns, 190s E ) 190s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s E inst = cls(*args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s E from .debugger import Debugger, _is_debugpy_available 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s E raise e 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s E from debugpy.server import api # noqa: F401 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s E import debugpy._vendored.force_pydevd # noqa 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s E preimport('pydevd', [ 190s E ~~~~~~~~~^^^^^^^^^^^^ 190s E '_pydev_bundle', 190s E ^^^^^^^^^^^^^^^^ 190s E ...<5 lines>... 190s E 'pydevd', 190s E ^^^^^^^^^ 190s E ]) 190s E ^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s E import_module(name) 190s E ~~~~~~~~~~~~~^^^^^^ 190s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s E return _bootstrap._gcd_import(name[level:], package, level) 190s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s E from _pydevd_bundle import pydevd_vars 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s E from ._pydevd_sys_monitoring import * 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E ...<4 lines>... 190s E ) # @UnusedImport 190s E ^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s E _opcode.opmap["BEFORE_ASYNC_WITH"], 190s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s tests/test_embed_kernel.py:69: OSError 190s _________________________ test_embed_kernel_namespace __________________________ 190s 190s @flaky(max_runs=3) 190s def test_embed_kernel_namespace(): 190s """IPython.embed_kernel() inherits calling namespace""" 190s cmd = "\n".join( 190s [ 190s "from IPython import embed_kernel", 190s "def go():", 190s " a=5", 190s ' b="hi there"', 190s " embed_kernel()", 190s "go()", 190s "", 190s ] 190s ) 190s 190s > with setup_kernel(cmd) as client: 190s 190s tests/test_embed_kernel.py:145: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3.14/contextlib.py:141: in __enter__ 190s return next(self.gen) 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s cmd = 'from IPython import embed_kernel\ndef go():\n a=5\n b="hi there"\n embed_kernel()\ngo()\n' 190s 190s @contextmanager 190s def setup_kernel(cmd): 190s """start an embedded kernel in a subprocess, and wait for it to be ready 190s 190s Returns 190s ------- 190s kernel_manager: connected KernelManager instance 190s """ 190s 190s def connection_file_ready(connection_file): 190s """Check if connection_file is a readable json file.""" 190s if not os.path.exists(connection_file): 190s return False 190s try: 190s with open(connection_file) as f: 190s json.load(f) 190s return True 190s except ValueError: 190s return False 190s 190s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 190s try: 190s connection_file = os.path.join( 190s paths.jupyter_runtime_dir(), 190s "kernel-%i.json" % kernel.pid, 190s ) 190s # wait for connection file to exist, timeout after 5s 190s tic = time.time() 190s while ( 190s not connection_file_ready(connection_file) 190s and kernel.poll() is None 190s and time.time() < tic + SETUP_TIMEOUT 190s ): 190s time.sleep(0.1) 190s 190s # Wait 100ms for the writing to finish 190s time.sleep(0.1) 190s 190s if kernel.poll() is not None: 190s o, e = kernel.communicate() 190s > raise OSError("Kernel failed to start:\n%s" % e) 190s E OSError: Kernel failed to start: 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s E from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s E from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s E from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s E from _pydevd_bundle.pydevd_cython_wrapper import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s E mod = getattr(__import__(check_name), mod_name) 190s E ~~~~~~~~~~^^^^^^^^^^^^ 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "", line 6, in 190s E go() 190s E ~~^^ 190s E File "", line 5, in go 190s E embed_kernel() 190s E ~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s E real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s E app.initialize([]) 190s E ~~~~~~~~~~~~~~^^^^ 190s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s E return method(app, *args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s E self.init_kernel() 190s E ~~~~~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s E kernel = kernel_factory( 190s E parent=self, 190s E ...<11 lines>... 190s E user_ns=self.user_ns, 190s E ) 190s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s E inst = cls(*args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s E from .debugger import Debugger, _is_debugpy_available 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s E raise e 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s E from debugpy.server import api # noqa: F401 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s E import debugpy._vendored.force_pydevd # noqa 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s E preimport('pydevd', [ 190s E ~~~~~~~~~^^^^^^^^^^^^ 190s E '_pydev_bundle', 190s E ^^^^^^^^^^^^^^^^ 190s E ...<5 lines>... 190s E 'pydevd', 190s E ^^^^^^^^^ 190s E ]) 190s E ^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s E import_module(name) 190s E ~~~~~~~~~~~~~^^^^^^ 190s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s E return _bootstrap._gcd_import(name[level:], package, level) 190s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s E from _pydevd_bundle import pydevd_vars 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s E from ._pydevd_sys_monitoring import * 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E ...<4 lines>... 190s E ) # @UnusedImport 190s E ^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s E _opcode.opmap["BEFORE_ASYNC_WITH"], 190s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s tests/test_embed_kernel.py:69: OSError 190s _________________________ test_embed_kernel_reentrant __________________________ 190s 190s @flaky(max_runs=3) 190s def test_embed_kernel_reentrant(): 190s """IPython.embed_kernel() can be called multiple times""" 190s cmd = "\n".join( 190s [ 190s "from IPython import embed_kernel", 190s "count = 0", 190s "def go():", 190s " global count", 190s " embed_kernel()", 190s " count = count + 1", 190s "", 190s "while True: go()", 190s "", 190s ] 190s ) 190s 190s > with setup_kernel(cmd) as client: 190s 190s tests/test_embed_kernel.py:186: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3.14/contextlib.py:141: in __enter__ 190s return next(self.gen) 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s 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' 190s 190s @contextmanager 190s def setup_kernel(cmd): 190s """start an embedded kernel in a subprocess, and wait for it to be ready 190s 190s Returns 190s ------- 190s kernel_manager: connected KernelManager instance 190s """ 190s 190s def connection_file_ready(connection_file): 190s """Check if connection_file is a readable json file.""" 190s if not os.path.exists(connection_file): 190s return False 190s try: 190s with open(connection_file) as f: 190s json.load(f) 190s return True 190s except ValueError: 190s return False 190s 190s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 190s try: 190s connection_file = os.path.join( 190s paths.jupyter_runtime_dir(), 190s "kernel-%i.json" % kernel.pid, 190s ) 190s # wait for connection file to exist, timeout after 5s 190s tic = time.time() 190s while ( 190s not connection_file_ready(connection_file) 190s and kernel.poll() is None 190s and time.time() < tic + SETUP_TIMEOUT 190s ): 190s time.sleep(0.1) 190s 190s # Wait 100ms for the writing to finish 190s time.sleep(0.1) 190s 190s if kernel.poll() is not None: 190s o, e = kernel.communicate() 190s > raise OSError("Kernel failed to start:\n%s" % e) 190s E OSError: Kernel failed to start: 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s E from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s E from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s E from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s E from _pydevd_bundle.pydevd_cython_wrapper import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s E mod = getattr(__import__(check_name), mod_name) 190s E ~~~~~~~~~~^^^^^^^^^^^^ 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "", line 8, in 190s E while True: go() 190s E ~~^^ 190s E File "", line 5, in go 190s E embed_kernel() 190s E ~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s E real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s E app.initialize([]) 190s E ~~~~~~~~~~~~~~^^^^ 190s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s E return method(app, *args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s E self.init_kernel() 190s E ~~~~~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s E kernel = kernel_factory( 190s E parent=self, 190s E ...<11 lines>... 190s E user_ns=self.user_ns, 190s E ) 190s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s E inst = cls(*args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s E from .debugger import Debugger, _is_debugpy_available 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s E raise e 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s E from debugpy.server import api # noqa: F401 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s E import debugpy._vendored.force_pydevd # noqa 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s E preimport('pydevd', [ 190s E ~~~~~~~~~^^^^^^^^^^^^ 190s E '_pydev_bundle', 190s E ^^^^^^^^^^^^^^^^ 190s E ...<5 lines>... 190s E 'pydevd', 190s E ^^^^^^^^^ 190s E ]) 190s E ^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s E import_module(name) 190s E ~~~~~~~~~~~~~^^^^^^ 190s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s E return _bootstrap._gcd_import(name[level:], package, level) 190s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s E from _pydevd_bundle import pydevd_vars 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s E from ._pydevd_sys_monitoring import * 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E ...<4 lines>... 190s E ) # @UnusedImport 190s E ^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s E _opcode.opmap["BEFORE_ASYNC_WITH"], 190s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s tests/test_embed_kernel.py:69: OSError 190s ____________________________ test_embed_kernel_func ____________________________ 190s 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 190s 190s if IS_PY312_OR_GREATER: 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring_cython import * 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s from ._pydevd_sys_monitoring import * 190s 190s else: 190s try: 190s > from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s > from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s > from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 190s 190s During handling of the above exception, another exception occurred: 190s 190s # Defines which version of the trace_dispatch we'll use. 190s # Should give warning only here if cython is not available but supported. 190s 190s import os 190s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 190s from _pydev_bundle import pydev_log 190s 190s dirname = os.path.dirname(os.path.dirname(__file__)) 190s USING_CYTHON = False 190s 190s 190s def delete_old_compiled_extensions(): 190s import _pydevd_bundle 190s 190s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 190s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 190s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 190s try: 190s import shutil 190s 190s for file in os.listdir(_pydevd_bundle_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 190s for file in os.listdir(_pydevd_frame_eval_ext_dir): 190s if file.startswith("pydevd") and file.endswith(".so"): 190s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 190s build_dir = os.path.join(cython_extensions_dir, "build") 190s if os.path.exists(build_dir): 190s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 190s except OSError: 190s pydev_log.error_once( 190s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 190s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 190s ) 190s 190s 190s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 190s # We must import the cython version if forcing cython 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s USING_CYTHON = True 190s 190s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 190s # Use the regular version if not forcing cython 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) # @UnusedImport 190s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 190s 190s else: 190s # Regular: use fallback if not found and give message to user 190s try: 190s > from _pydevd_bundle.pydevd_cython_wrapper import ( 190s trace_dispatch, 190s global_cache_skips, 190s global_cache_frame_skips, 190s fix_top_level_trace_and_get_trace_func, 190s ) 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import sys 190s 190s try: 190s try: 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s 190s except ImportError: 190s from _pydevd_bundle import pydevd_cython as mod 190s 190s except ImportError: 190s import struct 190s 190s try: 190s is_python_64bit = struct.calcsize("P") == 8 190s except: 190s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 190s raise ImportError 190s plat = "32" 190s if is_python_64bit: 190s plat = "64" 190s 190s # We also accept things as: 190s # 190s # _pydevd_bundle.pydevd_cython_win32_27_32 190s # _pydevd_bundle.pydevd_cython_win32_34_64 190s # 190s # to have multiple pre-compiled pyds distributed along the IDE 190s # (generated by build_tools/build_binaries_windows.py). 190s 190s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 190s check_name = "_pydevd_bundle.%s" % (mod_name,) 190s > mod = getattr(__import__(check_name), mod_name) 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 190s 190s During handling of the above exception, another exception occurred: 190s 190s def test_embed_kernel_func(): 190s from types import ModuleType 190s 190s module = ModuleType("test") 190s 190s def trigger_stop(): 190s time.sleep(1) 190s app = IPKernelApp.instance() 190s app.io_loop.add_callback(app.io_loop.stop) 190s IPKernelApp.clear_instance() 190s 190s thread = threading.Thread(target=trigger_stop) 190s thread.start() 190s 190s > embed_kernel(module, outstream_class=None) 190s 190s tests/test_embed_kernel.py:215: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/ipykernel/embed.py:38: in embed_kernel 190s app.initialize([]) 190s /usr/lib/python3/dist-packages/traitlets/config/application.py:118: in inner 190s return method(app, *args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/kernelapp.py:707: in initialize 190s self.init_kernel() 190s /usr/lib/python3/dist-packages/ipykernel/kernelapp.py:555: in init_kernel 190s kernel = kernel_factory( 190s /usr/lib/python3/dist-packages/traitlets/config/configurable.py:583: in instance 190s inst = cls(*args, **kwargs) 190s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 190s raise e 190s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 190s from debugpy.server import api # noqa: F401 190s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 190s import debugpy._vendored.force_pydevd # noqa 190s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 190s preimport('pydevd', [ 190s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 190s import_module(name) 190s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 190s from _pydevd_bundle import pydevd_vars 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 190s from ._pydevd_sys_monitoring import * 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 190s from _pydevd_frame_eval.vendored import bytecode 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s import opcode as _opcode 190s from enum import IntFlag 190s from typing import Optional, Union 190s 190s # alias to keep the 'bytecode' variable free 190s from _pydevd_frame_eval.vendored import bytecode as _bytecode 190s 190s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 190s from .utils import PY311, PY312, PY313 190s 190s 190s class CompilerFlags(IntFlag): 190s """Possible values of the co_flags attribute of Code object. 190s 190s Note: We do not rely on inspect values here as some of them are missing and 190s furthermore would be version dependent. 190s 190s """ 190s 190s OPTIMIZED = 0x00001 190s NEWLOCALS = 0x00002 190s VARARGS = 0x00004 190s VARKEYWORDS = 0x00008 190s NESTED = 0x00010 190s GENERATOR = 0x00020 190s NOFREE = 0x00040 190s # New in Python 3.5 190s # Used for coroutines defined using async def ie native coroutine 190s COROUTINE = 0x00080 190s # Used for coroutines defined as a generator and then decorated using 190s # types.coroutine 190s ITERABLE_COROUTINE = 0x00100 190s # New in Python 3.6 190s # Generator defined in an async def function 190s ASYNC_GENERATOR = 0x00200 190s 190s FUTURE_GENERATOR_STOP = 0x800000 190s FUTURE_ANNOTATIONS = 0x1000000 190s 190s 190s UNOPTIMIZED_OPCODES = ( 190s _opcode.opmap["STORE_NAME"], 190s _opcode.opmap["LOAD_NAME"], 190s _opcode.opmap["DELETE_NAME"], 190s ) 190s 190s ASYNC_OPCODES = ( 190s _opcode.opmap["GET_AWAITABLE"], 190s _opcode.opmap["GET_AITER"], 190s _opcode.opmap["GET_ANEXT"], 190s > _opcode.opmap["BEFORE_ASYNC_WITH"], 190s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 190s _opcode.opmap["END_ASYNC_FOR"], 190s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 190s ) 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 190s ___________________________ test_install_kernelspec ____________________________ 190s 190s def test_install_kernelspec(): 190s path = tempfile.mkdtemp() 190s try: 190s > InstallIPythonKernelSpecApp.launch_instance(argv=["--prefix", path]) 190s 190s tests/test_kernelspec.py:83: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3/dist-packages/traitlets/config/application.py:1073: in launch_instance 190s app = cls.instance(**kwargs) 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s cls = , args = () 190s kwargs = {} 190s 190s @classmethod 190s def instance(cls: type[CT], *args: t.Any, **kwargs: t.Any) -> CT: 190s """Returns a global instance of this class. 190s 190s This method create a new instance if none have previously been created 190s and returns a previously created instance is one already exists. 190s 190s The arguments and keyword arguments passed to this method are passed 190s on to the :meth:`__init__` method of the class upon instantiation. 190s 190s Examples 190s -------- 190s Create a singleton class using instance, and retrieve it:: 190s 190s >>> from traitlets.config.configurable import SingletonConfigurable 190s >>> class Foo(SingletonConfigurable): pass 190s >>> foo = Foo.instance() 190s >>> foo == Foo.instance() 190s True 190s 190s Create a subclass that is retrieved using the base class instance:: 190s 190s >>> class Bar(SingletonConfigurable): pass 190s >>> class Bam(Bar): pass 190s >>> bam = Bam.instance() 190s >>> bam == Bar.instance() 190s True 190s """ 190s # Create and save the instance 190s if cls._instance is None: 190s inst = cls(*args, **kwargs) 190s # Now make sure that the instance will also be returned by 190s # parent classes' _instance attribute. 190s for subclass in cls._walk_mro(): 190s subclass._instance = inst 190s 190s if isinstance(cls._instance, cls): 190s return cls._instance 190s else: 190s > raise MultipleInstanceError( 190s f"An incompatible sibling of '{cls.__name__}' is already instantiated" 190s f" as singleton: {type(cls._instance).__name__}" 190s ) 190s E traitlets.config.configurable.MultipleInstanceError: An incompatible sibling of 'InstallIPythonKernelSpecApp' is already instantiated as singleton: IPKernelApp 190s 190s /usr/lib/python3/dist-packages/traitlets/config/configurable.py:592: MultipleInstanceError 190s _______________________ test_ipython_start_kernel_userns _______________________ 190s 190s @flaky(max_runs=3) 190s def test_ipython_start_kernel_userns(): 190s cmd = dedent( 190s """ 190s from ipykernel.kernelapp import launch_new_instance 190s ns = {"custom": 123} 190s launch_new_instance(user_ns=ns) 190s """ 190s ) 190s 190s > with setup_kernel(cmd) as client: 190s 190s tests/test_start_kernel.py:25: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3.14/contextlib.py:141: in __enter__ 190s return next(self.gen) 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s cmd = '\nfrom ipykernel.kernelapp import launch_new_instance\nns = {"custom": 123}\nlaunch_new_instance(user_ns=ns)\n' 190s 190s @contextmanager 190s def setup_kernel(cmd): 190s """start an embedded kernel in a subprocess, and wait for it to be ready 190s 190s Returns 190s ------- 190s kernel_manager: connected KernelManager instance 190s """ 190s 190s def connection_file_ready(connection_file): 190s """Check if connection_file is a readable json file.""" 190s if not os.path.exists(connection_file): 190s return False 190s try: 190s with open(connection_file) as f: 190s json.load(f) 190s return True 190s except ValueError: 190s return False 190s 190s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 190s try: 190s connection_file = os.path.join( 190s paths.jupyter_runtime_dir(), 190s "kernel-%i.json" % kernel.pid, 190s ) 190s # wait for connection file to exist, timeout after 5s 190s tic = time.time() 190s while ( 190s not connection_file_ready(connection_file) 190s and kernel.poll() is None 190s and time.time() < tic + SETUP_TIMEOUT 190s ): 190s time.sleep(0.1) 190s 190s # Wait 100ms for the writing to finish 190s time.sleep(0.1) 190s 190s if kernel.poll() is not None: 190s o, e = kernel.communicate() 190s > raise OSError("Kernel failed to start:\n%s" % e) 190s E OSError: Kernel failed to start: 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s E from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s E from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s E from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s E from _pydevd_bundle.pydevd_cython_wrapper import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s E mod = getattr(__import__(check_name), mod_name) 190s E ~~~~~~~~~~^^^^^^^^^^^^ 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "", line 4, in 190s E launch_new_instance(user_ns=ns) 190s E ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 190s E app.initialize(argv) 190s E ~~~~~~~~~~~~~~^^^^^^ 190s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s E return method(app, *args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s E self.init_kernel() 190s E ~~~~~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s E kernel = kernel_factory( 190s E parent=self, 190s E ...<11 lines>... 190s E user_ns=self.user_ns, 190s E ) 190s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s E inst = cls(*args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s E from .debugger import Debugger, _is_debugpy_available 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s E raise e 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s E from debugpy.server import api # noqa: F401 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s E import debugpy._vendored.force_pydevd # noqa 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s E preimport('pydevd', [ 190s E ~~~~~~~~~^^^^^^^^^^^^ 190s E '_pydev_bundle', 190s E ^^^^^^^^^^^^^^^^ 190s E ...<5 lines>... 190s E 'pydevd', 190s E ^^^^^^^^^ 190s E ]) 190s E ^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s E import_module(name) 190s E ~~~~~~~~~~~~~^^^^^^ 190s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s E return _bootstrap._gcd_import(name[level:], package, level) 190s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s E from _pydevd_bundle import pydevd_vars 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s E from ._pydevd_sys_monitoring import * 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E ...<4 lines>... 190s E ) # @UnusedImport 190s E ^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s E _opcode.opmap["BEFORE_ASYNC_WITH"], 190s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s tests/test_embed_kernel.py:69: OSError 190s _____________________ test_ipython_start_kernel_no_userns ______________________ 190s 190s @flaky(max_runs=3) 190s def test_ipython_start_kernel_no_userns(): 190s # Issue #4188 - user_ns should be passed to shell as None, not {} 190s cmd = dedent( 190s """ 190s from ipykernel.kernelapp import launch_new_instance 190s launch_new_instance() 190s """ 190s ) 190s 190s > with setup_kernel(cmd) as client: 190s 190s tests/test_start_kernel.py:56: 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s /usr/lib/python3.14/contextlib.py:141: in __enter__ 190s return next(self.gen) 190s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 190s 190s cmd = '\nfrom ipykernel.kernelapp import launch_new_instance\nlaunch_new_instance()\n' 190s 190s @contextmanager 190s def setup_kernel(cmd): 190s """start an embedded kernel in a subprocess, and wait for it to be ready 190s 190s Returns 190s ------- 190s kernel_manager: connected KernelManager instance 190s """ 190s 190s def connection_file_ready(connection_file): 190s """Check if connection_file is a readable json file.""" 190s if not os.path.exists(connection_file): 190s return False 190s try: 190s with open(connection_file) as f: 190s json.load(f) 190s return True 190s except ValueError: 190s return False 190s 190s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 190s try: 190s connection_file = os.path.join( 190s paths.jupyter_runtime_dir(), 190s "kernel-%i.json" % kernel.pid, 190s ) 190s # wait for connection file to exist, timeout after 5s 190s tic = time.time() 190s while ( 190s not connection_file_ready(connection_file) 190s and kernel.poll() is None 190s and time.time() < tic + SETUP_TIMEOUT 190s ): 190s time.sleep(0.1) 190s 190s # Wait 100ms for the writing to finish 190s time.sleep(0.1) 190s 190s if kernel.poll() is not None: 190s o, e = kernel.communicate() 190s > raise OSError("Kernel failed to start:\n%s" % e) 190s E OSError: Kernel failed to start: 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s E from ._pydevd_sys_monitoring_cython import * 190s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s E from _pydevd_bundle_ext import pydevd_cython as mod 190s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s E from _pydevd_bundle import pydevd_cython as mod 190s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s E from _pydevd_bundle.pydevd_cython_wrapper import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s E mod = getattr(__import__(check_name), mod_name) 190s E ~~~~~~~~~~^^^^^^^^^^^^ 190s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s E 190s E During handling of the above exception, another exception occurred: 190s E 190s E Traceback (most recent call last): 190s E File "", line 3, in 190s E launch_new_instance() 190s E ~~~~~~~~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 190s E app.initialize(argv) 190s E ~~~~~~~~~~~~~~^^^^^^ 190s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s E return method(app, *args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s E self.init_kernel() 190s E ~~~~~~~~~~~~~~~~^^ 190s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s E kernel = kernel_factory( 190s E parent=self, 190s E ...<11 lines>... 190s E user_ns=self.user_ns, 190s E ) 190s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s E inst = cls(*args, **kwargs) 190s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s E from .debugger import Debugger, _is_debugpy_available 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s E raise e 190s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s E from debugpy.server import api # noqa: F401 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s E import debugpy._vendored.force_pydevd # noqa 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s E preimport('pydevd', [ 190s E ~~~~~~~~~^^^^^^^^^^^^ 190s E '_pydev_bundle', 190s E ^^^^^^^^^^^^^^^^ 190s E ...<5 lines>... 190s E 'pydevd', 190s E ^^^^^^^^^ 190s E ]) 190s E ^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s E import_module(name) 190s E ~~~~~~~~~~~~~^^^^^^ 190s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s E return _bootstrap._gcd_import(name[level:], package, level) 190s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s E from _pydevd_bundle import pydevd_vars 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s E from ._pydevd_sys_monitoring import * 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s E ...<4 lines>... 190s E ) # @UnusedImport 190s E ^ 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s E ...<4 lines>... 190s E ) 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s E _opcode.opmap["BEFORE_ASYNC_WITH"], 190s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s E KeyError: 'BEFORE_ASYNC_WITH' 190s 190s tests/test_embed_kernel.py:69: OSError 190s =============================== warnings summary =============================== 190s ../../../usr/lib/python3/dist-packages/jupyter_client/connect.py:22 190s /usr/lib/python3/dist-packages/jupyter_client/connect.py:22: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs 190s given by the platformdirs library. To remove this warning and 190s see the appropriate new directories, set the environment variable 190s `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. 190s The use of platformdirs will be the default in `jupyter_core` v6 190s from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write 190s 190s tests/inprocess/test_kernel.py::test_with_cell_id 190s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:1177: DeprecationWarning: 'asyncio.get_event_loop_policy' is deprecated and slated for removal in Python 3.16 190s return asyncio.get_event_loop_policy() 190s 190s tests/test_eventloop.py::test_asyncio_interrupt 190s /usr/lib/python3/dist-packages/_pytest/threadexception.py:82: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-14 (trigger_stop) 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3.14/threading.py", line 1081, in _bootstrap_inner 190s self._context.run(self.run) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^ 190s File "/usr/lib/python3.14/threading.py", line 1023, in run 190s self._target(*self._args, **self._kwargs) 190s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/tmp/autopkgtest.o7kR3P/autopkgtest_tmp/tests/test_embed_kernel.py", line 209, in trigger_stop 190s app.io_loop.add_callback(app.io_loop.stop) 190s ^^^^^^^^^^^ 190s AttributeError: 'IPKernelApp' object has no attribute 'io_loop'. Did you mean: 'trio_loop'? 190s 190s warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) 190s 190s tests/test_io.py: 1 warning 190s tests/test_kernel_direct.py: 19 warnings 190s /usr/lib/python3/dist-packages/_pytest/python.py:148: PytestUnhandledCoroutineWarning: async def functions are not natively supported and have been skipped. 190s You need to install a suitable plugin for your async framework, for example: 190s - anyio 190s - pytest-asyncio 190s - pytest-tornasync 190s - pytest-trio 190s - pytest-twisted 190s warnings.warn(PytestUnhandledCoroutineWarning(msg.format(nodeid))) 190s 190s tests/test_zmq_shell.py::test_magics 190s tests/test_zmq_shell.py::test_zmq_interactive_shell 190s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=2855) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 190s pid, fd = os.forkpty() 190s 190s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 190s ===Flaky Test Report=== 190s 190s test_interface failed (1 runs remaining out of 2). 190s 190s 'BEFORE_ASYNC_WITH' 190s [, , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_interface failed; it passed 0 out of the required 1 times. 190s 190s 'BEFORE_ASYNC_WITH' 190s [, , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_basic failed (2 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 6, in 190s go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_basic failed (1 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 6, in 190s go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_basic failed; it passed 0 out of the required 1 times. 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 6, in 190s go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_namespace failed (2 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 6, in 190s go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_namespace failed (1 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 6, in 190s go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_namespace failed; it passed 0 out of the required 1 times. 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 6, in 190s go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_reentrant failed (2 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 8, in 190s while True: go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_reentrant failed (1 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 8, in 190s while True: go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_embed_kernel_reentrant failed; it passed 0 out of the required 1 times. 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 8, in 190s while True: go() 190s ~~^^ 190s File "", line 5, in go 190s embed_kernel() 190s ~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 190s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 190s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 190s app.initialize([]) 190s ~~~~~~~~~~~~~~^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_subprocess_print passed 1 out of the required 1 times. Success! 190s test_subprocess_noprint passed 1 out of the required 1 times. Success! 190s test_subprocess_error passed 1 out of the required 1 times. Success! 190s test_ipython_start_kernel_userns failed (2 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 4, in 190s launch_new_instance(user_ns=ns) 190s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 190s app.initialize(argv) 190s ~~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_ipython_start_kernel_userns failed (1 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 4, in 190s launch_new_instance(user_ns=ns) 190s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 190s app.initialize(argv) 190s ~~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_ipython_start_kernel_userns failed; it passed 0 out of the required 1 times. 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 4, in 190s launch_new_instance(user_ns=ns) 190s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 190s app.initialize(argv) 190s ~~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_ipython_start_kernel_no_userns failed (2 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 3, in 190s launch_new_instance() 190s ~~~~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 190s app.initialize(argv) 190s ~~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_ipython_start_kernel_no_userns failed (1 runs remaining out of 3). 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 3, in 190s launch_new_instance() 190s ~~~~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 190s app.initialize(argv) 190s ~~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s test_ipython_start_kernel_no_userns failed; it passed 0 out of the required 1 times. 190s 190s Kernel failed to start: 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 190s from ._pydevd_sys_monitoring_cython import * 190s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 190s from _pydevd_bundle_ext import pydevd_cython as mod 190s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 190s from _pydevd_bundle import pydevd_cython as mod 190s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 190s from _pydevd_bundle.pydevd_cython_wrapper import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 190s mod = getattr(__import__(check_name), mod_name) 190s ~~~~~~~~~~^^^^^^^^^^^^ 190s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 190s 190s During handling of the above exception, another exception occurred: 190s 190s Traceback (most recent call last): 190s File "", line 3, in 190s launch_new_instance() 190s ~~~~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 190s app.initialize(argv) 190s ~~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 190s return method(app, *args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 190s self.init_kernel() 190s ~~~~~~~~~~~~~~~~^^ 190s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 190s kernel = kernel_factory( 190s parent=self, 190s ...<11 lines>... 190s user_ns=self.user_ns, 190s ) 190s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 190s inst = cls(*args, **kwargs) 190s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 190s from .debugger import Debugger, _is_debugpy_available 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 190s raise e 190s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 190s from debugpy.server import api # noqa: F401 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 190s import debugpy._vendored.force_pydevd # noqa 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 190s preimport('pydevd', [ 190s ~~~~~~~~~^^^^^^^^^^^^ 190s '_pydev_bundle', 190s ^^^^^^^^^^^^^^^^ 190s ...<5 lines>... 190s 'pydevd', 190s ^^^^^^^^^ 190s ]) 190s ^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 190s import_module(name) 190s ~~~~~~~~~~~~~^^^^^^ 190s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 190s return _bootstrap._gcd_import(name[level:], package, level) 190s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 190s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 190s from _pydevd_bundle import pydevd_vars 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 190s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 190s from _pydevd_sys_monitoring import pydevd_sys_monitoring 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 190s from ._pydevd_sys_monitoring import * 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 190s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 190s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 190s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 190s ...<4 lines>... 190s ) # @UnusedImport 190s ^ 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 190s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 190s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 190s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 190s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 190s ...<4 lines>... 190s ) 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 190s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 190s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 190s _opcode.opmap["BEFORE_ASYNC_WITH"], 190s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 190s KeyError: 'BEFORE_ASYNC_WITH' 190s 190s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 190s 190s ===End Flaky Test Report=== 190s =========================== short test summary info ============================ 190s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_complete 190s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_execute 190s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_history 190s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_inspect 190s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_interface 190s FAILED tests/test_embed_kernel.py::test_embed_kernel_basic - OSError: Kernel ... 190s FAILED tests/test_embed_kernel.py::test_embed_kernel_namespace - OSError: Ker... 190s FAILED tests/test_embed_kernel.py::test_embed_kernel_reentrant - OSError: Ker... 190s FAILED tests/test_embed_kernel.py::test_embed_kernel_func - KeyError: 'BEFORE... 190s FAILED tests/test_kernelspec.py::test_install_kernelspec - traitlets.config.c... 190s FAILED tests/test_start_kernel.py::test_ipython_start_kernel_userns - OSError... 190s FAILED tests/test_start_kernel.py::test_ipython_start_kernel_no_userns - OSEr... 190s ERROR tests/inprocess/test_kernel.py::test_with_cell_id - KeyError: 'BEFORE_A... 190s ERROR tests/inprocess/test_kernel.py::test_pylab - KeyError: 'BEFORE_ASYNC_WITH' 190s ERROR tests/inprocess/test_kernel.py::test_raw_input - KeyError: 'BEFORE_ASYN... 190s ERROR tests/inprocess/test_kernel.py::test_stdout - KeyError: 'BEFORE_ASYNC_W... 190s ERROR tests/inprocess/test_kernel.py::test_getpass_stream - KeyError: 'BEFORE... 190s ERROR tests/inprocess/test_kernel.py::test_do_execute - KeyError: 'BEFORE_ASY... 190s ERROR tests/test_comm.py::test_comm_in_manager - KeyError: 'BEFORE_ASYNC_WITH' 190s ERROR tests/test_ipkernel_direct.py::test_properties - KeyError: 'BEFORE_ASYN... 190s ERROR tests/test_ipkernel_direct.py::test_direct_kernel_info_request - KeyErr... 190s ERROR tests/test_ipkernel_direct.py::test_direct_execute_request - KeyError: ... 190s ERROR tests/test_ipkernel_direct.py::test_direct_execute_request_aborting - K... 190s ERROR tests/test_ipkernel_direct.py::test_complete_request - KeyError: 'BEFOR... 190s ERROR tests/test_ipkernel_direct.py::test_inspect_request - KeyError: 'BEFORE... 190s ERROR tests/test_ipkernel_direct.py::test_history_request - KeyError: 'BEFORE... 190s ERROR tests/test_ipkernel_direct.py::test_comm_info_request - KeyError: 'BEFO... 190s ERROR tests/test_ipkernel_direct.py::test_direct_interrupt_request - KeyError... 190s ERROR tests/test_ipkernel_direct.py::test_is_complete_request - KeyError: 'BE... 190s ERROR tests/test_ipkernel_direct.py::test_do_apply - KeyError: 'BEFORE_ASYNC_... 190s ERROR tests/test_ipkernel_direct.py::test_direct_debug_request - KeyError: 'B... 190s ERROR tests/test_ipkernel_direct.py::test_direct_clear - KeyError: 'BEFORE_AS... 190s ERROR tests/test_ipkernel_direct.py::test_cancel_on_sigint - KeyError: 'BEFOR... 190s ERROR tests/test_ipkernel_direct.py::test_dispatch_debugpy - KeyError: 'BEFOR... 190s ERROR tests/test_ipkernel_direct.py::test_start - KeyError: 'BEFORE_ASYNC_WITH' 190s ERROR tests/test_ipkernel_direct.py::test_start_no_debugpy - KeyError: 'BEFOR... 190s ERROR tests/test_ipkernel_direct.py::test_finish_metadata - KeyError: 'BEFORE... 190s ERROR tests/test_ipkernel_direct.py::test_do_debug_request - KeyError: 'BEFOR... 190s = 12 failed, 110 passed, 37 skipped, 1 deselected, 25 warnings, 26 errors in 79.09s (0:01:19) = 191s autopkgtest [10:51:14]: test pytest: -----------------------] 191s pytest FAIL non-zero exit status 1 191s autopkgtest [10:51:14]: test pytest: - - - - - - - - - - results - - - - - - - - - - 192s autopkgtest [10:51:15]: @@@@@@@@@@@@@@@@@@@@ summary 192s pytest FAIL non-zero exit status 1