0s autopkgtest [12:06:33]: starting date and time: 2025-11-17 12:06:33+0000 0s autopkgtest [12:06:33]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [12:06:33]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.fqj5knpq/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python-pytest-asyncio,src:pytest,src:python3-defaults --apt-upgrade ipykernel --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python-pytest-asyncio/1.2.0-1 pytest/8.4.2-1 python3-defaults/3.13.7-2' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-s390x-10.secgroup --name adt-resolute-s390x-ipykernel-20251117-120633-juju-7f2275-prod-proposed-migration-environment-20-6440116b-52e5-4ab5-a96d-39e0944b22d7 --image adt/ubuntu-resolute-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-s390x -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-s390x-ipykernel-20251117-120633-juju-7f2275-prod-proposed-migration-environment-20-6440116b-52e5-4ab5-a96d-39e0944b22d7 from image adt/ubuntu-resolute-s390x-server-20251117.img (UUID a3a3e3b9-e6ba-478c-a5e9-fce6f0982a95)... 51s autopkgtest [12:07:24]: testbed dpkg architecture: s390x 51s autopkgtest [12:07:24]: testbed apt version: 3.1.11 51s autopkgtest [12:07:24]: @@@@@@@@@@@@@@@@@@@@ test bed setup 51s autopkgtest [12:07:24]: testbed release detected to be: None 52s autopkgtest [12:07:25]: updating testbed package index (apt update) 52s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 53s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 53s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 53s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 53s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 53s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 53s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.1 kB] 53s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [868 kB] 53s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x Packages [138 kB] 53s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted s390x Packages [940 B] 53s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x Packages [545 kB] 53s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse s390x Packages [10.6 kB] 53s Fetched 1764 kB in 1s (1581 kB/s) 54s Reading package lists... 55s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 55s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 55s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 55s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 55s Reading package lists... 55s Reading package lists... 56s Building dependency tree... 56s Reading state information... 56s Calculating upgrade... 56s The following packages will be upgraded: 56s libpython3-stdlib python3 python3-minimal usbutils 56s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 56s Need to get 148 kB of archives. 56s After this operation, 4096 B disk space will be freed. 56s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3-minimal s390x 3.13.7-2 [27.8 kB] 56s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3 s390x 3.13.7-2 [23.9 kB] 56s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x libpython3-stdlib s390x 3.13.7-2 [10.6 kB] 56s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x usbutils s390x 1:019-1 [85.6 kB] 56s dpkg-preconfigure: unable to re-open stdin: No such file or directory 56s Fetched 148 kB in 0s (375 kB/s) 56s (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 ... 61309 files and directories currently installed.) 56s Preparing to unpack .../python3-minimal_3.13.7-2_s390x.deb ... 56s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 56s Setting up python3-minimal (3.13.7-2) ... 57s (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 ... 61309 files and directories currently installed.) 57s Preparing to unpack .../python3_3.13.7-2_s390x.deb ... 57s running python pre-rtupdate hooks for python3.13... 57s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 57s Preparing to unpack .../libpython3-stdlib_3.13.7-2_s390x.deb ... 57s Unpacking libpython3-stdlib:s390x (3.13.7-2) over (3.13.7-1) ... 57s Preparing to unpack .../usbutils_1%3a019-1_s390x.deb ... 57s Unpacking usbutils (1:019-1) over (1:018-2) ... 57s Setting up usbutils (1:019-1) ... 57s Setting up libpython3-stdlib:s390x (3.13.7-2) ... 57s Setting up python3 (3.13.7-2) ... 57s running python rtupdate hooks for python3.13... 57s running python post-rtupdate hooks for python3.13... 57s Processing triggers for man-db (2.13.1-1) ... 58s autopkgtest [12:07:31]: upgrading testbed (apt dist-upgrade and autopurge) 58s Reading package lists... 58s Building dependency tree... 58s Reading state information... 58s Calculating upgrade... 58s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 58s Reading package lists... 58s Building dependency tree... 58s Reading state information... 58s Solving dependencies... 58s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 61s autopkgtest [12:07:34]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP Mon Sep 22 08:56:47 UTC 2025 61s autopkgtest [12:07:34]: @@@@@@@@@@@@@@@@@@@@ apt-source ipykernel 62s Get:1 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (dsc) [2800 B] 62s Get:2 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (tar) [165 kB] 62s Get:3 http://ftpmaster.internal/ubuntu resolute/universe ipykernel 6.29.5-2 (diff) [8544 B] 62s gpgv: Signature made Mon Dec 16 01:06:00 2024 UTC 62s gpgv: using RSA key AC0A4FF12611B6FCCF01C111393587D97D86500B 62s gpgv: Can't check signature: No public key 62s dpkg-source: warning: cannot verify inline signature for ./ipykernel_6.29.5-2.dsc: no acceptable signature found 62s autopkgtest [12:07:35]: testing package ipykernel version 6.29.5-2 63s autopkgtest [12:07:36]: build not needed 63s autopkgtest [12:07:36]: test pytest: preparing testbed 63s Reading package lists... 64s Building dependency tree... 64s Reading state information... 64s Solving dependencies... 64s The following NEW packages will be installed: 64s gdb libbabeltrace1 libnorm1t64 libpgm-5.3-0t64 libpython3.14-minimal 64s libpython3.14-stdlib libsodium23 libsource-highlight-common 64s libsource-highlight4t64 libzmq5 python3-all python3-asttokens 64s python3-async-generator python3-comm python3-coverage python3-debugpy 64s python3-decorator python3-executing python3-flaky python3-iniconfig 64s python3-ipykernel python3-ipyparallel python3-ipython python3-jedi 64s python3-jupyter-client python3-jupyter-core python3-matplotlib-inline 64s python3-nest-asyncio python3-outcome python3-parso python3-platformdirs 64s python3-pluggy python3-prompt-toolkit python3-psutil python3-pure-eval 64s python3-pytest python3-pytest-asyncio python3-pytest-timeout python3-sniffio 64s python3-sortedcontainers python3-stack-data python3-tornado python3-tqdm 64s python3-traitlets python3-trio python3-typeshed python3-wcwidth python3-zmq 64s python3.14 python3.14-minimal 64s 0 upgraded, 50 newly installed, 0 to remove and 0 not upgraded. 64s Need to get 20.3 MB of archives. 64s After this operation, 86.3 MB of additional disk space will be used. 64s Get:1 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14-minimal s390x 3.14.0-4 [904 kB] 64s Get:2 http://ftpmaster.internal/ubuntu resolute/main s390x python3.14-minimal s390x 3.14.0-4 [2509 kB] 65s Get:3 http://ftpmaster.internal/ubuntu resolute/main s390x libbabeltrace1 s390x 1.5.11-4build3 [170 kB] 65s Get:4 http://ftpmaster.internal/ubuntu resolute/main s390x libsource-highlight-common all 3.1.9-4.3build1 [64.2 kB] 65s Get:5 http://ftpmaster.internal/ubuntu resolute/main s390x libsource-highlight4t64 s390x 3.1.9-4.3build1 [268 kB] 65s Get:6 http://ftpmaster.internal/ubuntu resolute/main s390x gdb s390x 16.3-1ubuntu2 [3942 kB] 65s Get:7 http://ftpmaster.internal/ubuntu resolute/universe s390x libnorm1t64 s390x 1.5.9+dfsg-4 [156 kB] 65s Get:8 http://ftpmaster.internal/ubuntu resolute/universe s390x libpgm-5.3-0t64 s390x 5.3.128~dfsg-2.1build1 [169 kB] 65s Get:9 http://ftpmaster.internal/ubuntu resolute/main s390x libpython3.14-stdlib s390x 3.14.0-4 [2373 kB] 65s Get:10 http://ftpmaster.internal/ubuntu resolute/main s390x libsodium23 s390x 1.0.18-1build3 [138 kB] 65s Get:11 http://ftpmaster.internal/ubuntu resolute/universe s390x libzmq5 s390x 4.3.5-1build2 [258 kB] 65s Get:12 http://ftpmaster.internal/ubuntu resolute/main s390x python3.14 s390x 3.14.0-4 [805 kB] 65s Get:13 http://ftpmaster.internal/ubuntu resolute-proposed/main s390x python3-all s390x 3.13.7-2 [892 B] 65s Get:14 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-asttokens all 3.0.0-2 [20.5 kB] 65s Get:15 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-async-generator all 1.10-7 [18.1 kB] 65s Get:16 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-traitlets all 5.14.3+really5.14.3-1 [71.5 kB] 65s Get:17 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-comm all 0.2.1-1 [7016 B] 65s Get:18 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-coverage s390x 7.8.2+dfsg1-1 [156 kB] 65s Get:19 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-debugpy s390x 1.8.12+ds-1ubuntu1 [767 kB] 65s Get:20 http://ftpmaster.internal/ubuntu resolute/main s390x python3-decorator all 5.2.1-2 [28.1 kB] 65s Get:21 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-executing all 2.2.0-0.2 [25.0 kB] 65s Get:22 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-flaky all 3.8.1-3 [16.8 kB] 65s Get:23 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-iniconfig all 2.1.0-1 [6840 B] 65s Get:24 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-parso all 0.8.5-1 [68.0 kB] 65s Get:25 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-typeshed all 0.0~git20241223.ea91db2-4 [1554 kB] 65s Get:26 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jedi all 0.19.1+ds1-1 [693 kB] 65s Get:27 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-matplotlib-inline all 0.1.7-1 [9186 B] 65s Get:28 http://ftpmaster.internal/ubuntu resolute/main s390x python3-wcwidth all 0.2.13+dfsg1-1 [26.3 kB] 65s Get:29 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-prompt-toolkit all 3.0.52-1 [258 kB] 65s Get:30 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pure-eval all 0.2.3-1 [11.4 kB] 65s Get:31 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-stack-data all 0.6.3-1 [22.0 kB] 65s Get:32 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipython all 8.35.0-2 [575 kB] 65s Get:33 http://ftpmaster.internal/ubuntu resolute/main s390x python3-platformdirs all 4.3.7-1 [16.9 kB] 65s Get:34 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jupyter-core all 5.7.2-5 [28.1 kB] 65s Get:35 http://ftpmaster.internal/ubuntu resolute/main s390x python3-psutil s390x 7.1.0-1ubuntu1 [191 kB] 65s Get:36 http://ftpmaster.internal/ubuntu resolute/main s390x python3-tornado s390x 6.5.2-3 [304 kB] 65s Get:37 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-zmq s390x 27.1.0-1 [248 kB] 65s Get:38 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-jupyter-client all 8.6.3-3 [78.4 kB] 65s Get:39 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-nest-asyncio all 1.5.4-1 [6256 B] 65s Get:40 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipykernel all 6.29.5-2 [82.7 kB] 65s Get:41 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-tqdm all 4.67.1-5 [92.1 kB] 66s Get:42 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-ipyparallel all 8.8.0-5 [2506 kB] 66s Get:43 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-outcome all 1.2.0-2 [6208 B] 66s Get:44 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pluggy all 1.6.0-1 [21.0 kB] 66s Get:45 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x python3-pytest all 8.4.2-1 [268 kB] 66s Get:46 http://ftpmaster.internal/ubuntu resolute-proposed/universe s390x python3-pytest-asyncio all 1.2.0-1 [13.6 kB] 66s Get:47 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-pytest-timeout all 2.3.1-2 [22.2 kB] 66s Get:48 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-sniffio all 1.3.1-1 [7262 B] 66s Get:49 http://ftpmaster.internal/ubuntu resolute/main s390x python3-sortedcontainers all 2.4.0-2 [27.6 kB] 66s Get:50 http://ftpmaster.internal/ubuntu resolute/universe s390x python3-trio all 0.29.0-1 [330 kB] 66s Fetched 20.3 MB in 2s (10.8 MB/s) 66s Selecting previously unselected package libpython3.14-minimal:s390x. 66s (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 ... 61309 files and directories currently installed.) 66s Preparing to unpack .../00-libpython3.14-minimal_3.14.0-4_s390x.deb ... 66s Unpacking libpython3.14-minimal:s390x (3.14.0-4) ... 66s Selecting previously unselected package python3.14-minimal. 66s Preparing to unpack .../01-python3.14-minimal_3.14.0-4_s390x.deb ... 66s Unpacking python3.14-minimal (3.14.0-4) ... 66s Selecting previously unselected package libbabeltrace1:s390x. 66s Preparing to unpack .../02-libbabeltrace1_1.5.11-4build3_s390x.deb ... 66s Unpacking libbabeltrace1:s390x (1.5.11-4build3) ... 66s Selecting previously unselected package libsource-highlight-common. 66s Preparing to unpack .../03-libsource-highlight-common_3.1.9-4.3build1_all.deb ... 66s Unpacking libsource-highlight-common (3.1.9-4.3build1) ... 66s Selecting previously unselected package libsource-highlight4t64:s390x. 66s Preparing to unpack .../04-libsource-highlight4t64_3.1.9-4.3build1_s390x.deb ... 66s Unpacking libsource-highlight4t64:s390x (3.1.9-4.3build1) ... 66s Selecting previously unselected package gdb. 66s Preparing to unpack .../05-gdb_16.3-1ubuntu2_s390x.deb ... 66s Unpacking gdb (16.3-1ubuntu2) ... 66s Selecting previously unselected package libnorm1t64:s390x. 66s Preparing to unpack .../06-libnorm1t64_1.5.9+dfsg-4_s390x.deb ... 66s Unpacking libnorm1t64:s390x (1.5.9+dfsg-4) ... 66s Selecting previously unselected package libpgm-5.3-0t64:s390x. 66s Preparing to unpack .../07-libpgm-5.3-0t64_5.3.128~dfsg-2.1build1_s390x.deb ... 66s Unpacking libpgm-5.3-0t64:s390x (5.3.128~dfsg-2.1build1) ... 66s Selecting previously unselected package libpython3.14-stdlib:s390x. 66s Preparing to unpack .../08-libpython3.14-stdlib_3.14.0-4_s390x.deb ... 66s Unpacking libpython3.14-stdlib:s390x (3.14.0-4) ... 66s Selecting previously unselected package libsodium23:s390x. 66s Preparing to unpack .../09-libsodium23_1.0.18-1build3_s390x.deb ... 66s Unpacking libsodium23:s390x (1.0.18-1build3) ... 66s Selecting previously unselected package libzmq5:s390x. 66s Preparing to unpack .../10-libzmq5_4.3.5-1build2_s390x.deb ... 66s Unpacking libzmq5:s390x (4.3.5-1build2) ... 66s Selecting previously unselected package python3.14. 66s Preparing to unpack .../11-python3.14_3.14.0-4_s390x.deb ... 66s Unpacking python3.14 (3.14.0-4) ... 66s Selecting previously unselected package python3-all. 66s Preparing to unpack .../12-python3-all_3.13.7-2_s390x.deb ... 66s Unpacking python3-all (3.13.7-2) ... 66s Selecting previously unselected package python3-asttokens. 66s Preparing to unpack .../13-python3-asttokens_3.0.0-2_all.deb ... 66s Unpacking python3-asttokens (3.0.0-2) ... 66s Selecting previously unselected package python3-async-generator. 66s Preparing to unpack .../14-python3-async-generator_1.10-7_all.deb ... 66s Unpacking python3-async-generator (1.10-7) ... 66s Selecting previously unselected package python3-traitlets. 66s Preparing to unpack .../15-python3-traitlets_5.14.3+really5.14.3-1_all.deb ... 66s Unpacking python3-traitlets (5.14.3+really5.14.3-1) ... 66s Selecting previously unselected package python3-comm. 66s Preparing to unpack .../16-python3-comm_0.2.1-1_all.deb ... 66s Unpacking python3-comm (0.2.1-1) ... 66s Selecting previously unselected package python3-coverage. 66s Preparing to unpack .../17-python3-coverage_7.8.2+dfsg1-1_s390x.deb ... 66s Unpacking python3-coverage (7.8.2+dfsg1-1) ... 66s Selecting previously unselected package python3-debugpy. 66s Preparing to unpack .../18-python3-debugpy_1.8.12+ds-1ubuntu1_s390x.deb ... 66s Unpacking python3-debugpy (1.8.12+ds-1ubuntu1) ... 66s Selecting previously unselected package python3-decorator. 66s Preparing to unpack .../19-python3-decorator_5.2.1-2_all.deb ... 66s Unpacking python3-decorator (5.2.1-2) ... 66s Selecting previously unselected package python3-executing. 66s Preparing to unpack .../20-python3-executing_2.2.0-0.2_all.deb ... 66s Unpacking python3-executing (2.2.0-0.2) ... 66s Selecting previously unselected package python3-flaky. 66s Preparing to unpack .../21-python3-flaky_3.8.1-3_all.deb ... 66s Unpacking python3-flaky (3.8.1-3) ... 66s Selecting previously unselected package python3-iniconfig. 66s Preparing to unpack .../22-python3-iniconfig_2.1.0-1_all.deb ... 66s Unpacking python3-iniconfig (2.1.0-1) ... 66s Selecting previously unselected package python3-parso. 66s Preparing to unpack .../23-python3-parso_0.8.5-1_all.deb ... 66s Unpacking python3-parso (0.8.5-1) ... 66s Selecting previously unselected package python3-typeshed. 66s Preparing to unpack .../24-python3-typeshed_0.0~git20241223.ea91db2-4_all.deb ... 66s Unpacking python3-typeshed (0.0~git20241223.ea91db2-4) ... 67s Selecting previously unselected package python3-jedi. 67s Preparing to unpack .../25-python3-jedi_0.19.1+ds1-1_all.deb ... 67s Unpacking python3-jedi (0.19.1+ds1-1) ... 67s Selecting previously unselected package python3-matplotlib-inline. 67s Preparing to unpack .../26-python3-matplotlib-inline_0.1.7-1_all.deb ... 67s Unpacking python3-matplotlib-inline (0.1.7-1) ... 67s Selecting previously unselected package python3-wcwidth. 67s Preparing to unpack .../27-python3-wcwidth_0.2.13+dfsg1-1_all.deb ... 67s Unpacking python3-wcwidth (0.2.13+dfsg1-1) ... 67s Selecting previously unselected package python3-prompt-toolkit. 67s Preparing to unpack .../28-python3-prompt-toolkit_3.0.52-1_all.deb ... 67s Unpacking python3-prompt-toolkit (3.0.52-1) ... 67s Selecting previously unselected package python3-pure-eval. 67s Preparing to unpack .../29-python3-pure-eval_0.2.3-1_all.deb ... 67s Unpacking python3-pure-eval (0.2.3-1) ... 67s Selecting previously unselected package python3-stack-data. 67s Preparing to unpack .../30-python3-stack-data_0.6.3-1_all.deb ... 67s Unpacking python3-stack-data (0.6.3-1) ... 67s Selecting previously unselected package python3-ipython. 67s Preparing to unpack .../31-python3-ipython_8.35.0-2_all.deb ... 67s Unpacking python3-ipython (8.35.0-2) ... 67s Selecting previously unselected package python3-platformdirs. 67s Preparing to unpack .../32-python3-platformdirs_4.3.7-1_all.deb ... 67s Unpacking python3-platformdirs (4.3.7-1) ... 67s Selecting previously unselected package python3-jupyter-core. 67s Preparing to unpack .../33-python3-jupyter-core_5.7.2-5_all.deb ... 67s Unpacking python3-jupyter-core (5.7.2-5) ... 67s Selecting previously unselected package python3-psutil. 67s Preparing to unpack .../34-python3-psutil_7.1.0-1ubuntu1_s390x.deb ... 67s Unpacking python3-psutil (7.1.0-1ubuntu1) ... 67s Selecting previously unselected package python3-tornado. 67s Preparing to unpack .../35-python3-tornado_6.5.2-3_s390x.deb ... 67s Unpacking python3-tornado (6.5.2-3) ... 67s Selecting previously unselected package python3-zmq. 67s Preparing to unpack .../36-python3-zmq_27.1.0-1_s390x.deb ... 67s Unpacking python3-zmq (27.1.0-1) ... 67s Selecting previously unselected package python3-jupyter-client. 67s Preparing to unpack .../37-python3-jupyter-client_8.6.3-3_all.deb ... 67s Unpacking python3-jupyter-client (8.6.3-3) ... 67s Selecting previously unselected package python3-nest-asyncio. 67s Preparing to unpack .../38-python3-nest-asyncio_1.5.4-1_all.deb ... 67s Unpacking python3-nest-asyncio (1.5.4-1) ... 67s Selecting previously unselected package python3-ipykernel. 67s Preparing to unpack .../39-python3-ipykernel_6.29.5-2_all.deb ... 67s Unpacking python3-ipykernel (6.29.5-2) ... 67s Selecting previously unselected package python3-tqdm. 67s Preparing to unpack .../40-python3-tqdm_4.67.1-5_all.deb ... 67s Unpacking python3-tqdm (4.67.1-5) ... 67s Selecting previously unselected package python3-ipyparallel. 67s Preparing to unpack .../41-python3-ipyparallel_8.8.0-5_all.deb ... 67s Unpacking python3-ipyparallel (8.8.0-5) ... 67s Selecting previously unselected package python3-outcome. 67s Preparing to unpack .../42-python3-outcome_1.2.0-2_all.deb ... 67s Unpacking python3-outcome (1.2.0-2) ... 67s Selecting previously unselected package python3-pluggy. 67s Preparing to unpack .../43-python3-pluggy_1.6.0-1_all.deb ... 67s Unpacking python3-pluggy (1.6.0-1) ... 67s Selecting previously unselected package python3-pytest. 67s Preparing to unpack .../44-python3-pytest_8.4.2-1_all.deb ... 67s Unpacking python3-pytest (8.4.2-1) ... 67s Selecting previously unselected package python3-pytest-asyncio. 67s Preparing to unpack .../45-python3-pytest-asyncio_1.2.0-1_all.deb ... 67s Unpacking python3-pytest-asyncio (1.2.0-1) ... 67s Selecting previously unselected package python3-pytest-timeout. 67s Preparing to unpack .../46-python3-pytest-timeout_2.3.1-2_all.deb ... 67s Unpacking python3-pytest-timeout (2.3.1-2) ... 67s Selecting previously unselected package python3-sniffio. 67s Preparing to unpack .../47-python3-sniffio_1.3.1-1_all.deb ... 67s Unpacking python3-sniffio (1.3.1-1) ... 67s Selecting previously unselected package python3-sortedcontainers. 67s Preparing to unpack .../48-python3-sortedcontainers_2.4.0-2_all.deb ... 67s Unpacking python3-sortedcontainers (2.4.0-2) ... 67s Selecting previously unselected package python3-trio. 67s Preparing to unpack .../49-python3-trio_0.29.0-1_all.deb ... 67s Unpacking python3-trio (0.29.0-1) ... 67s Setting up python3-iniconfig (2.1.0-1) ... 67s Setting up python3-sniffio (1.3.1-1) ... 67s Setting up python3-outcome (1.2.0-2) ... 67s Setting up python3-tornado (6.5.2-3) ... 68s Setting up libnorm1t64:s390x (1.5.9+dfsg-4) ... 68s Setting up python3-pure-eval (0.2.3-1) ... 68s Setting up libsodium23:s390x (1.0.18-1build3) ... 68s Setting up python3-async-generator (1.10-7) ... 68s Setting up python3-parso (0.8.5-1) ... 68s Setting up python3-asttokens (3.0.0-2) ... 69s Setting up libpython3.14-minimal:s390x (3.14.0-4) ... 69s Setting up python3-tqdm (4.67.1-5) ... 69s Setting up python3-coverage (7.8.2+dfsg1-1) ... 69s Setting up python3-sortedcontainers (2.4.0-2) ... 69s Setting up python3-platformdirs (4.3.7-1) ... 69s Setting up python3-psutil (7.1.0-1ubuntu1) ... 70s Setting up libsource-highlight-common (3.1.9-4.3build1) ... 70s Setting up libpgm-5.3-0t64:s390x (5.3.128~dfsg-2.1build1) ... 70s Setting up python3-decorator (5.2.1-2) ... 70s Setting up python3-flaky (3.8.1-3) ... 70s Setting up python3-wcwidth (0.2.13+dfsg1-1) ... 70s Setting up python3-trio (0.29.0-1) ... 71s Setting up python3-typeshed (0.0~git20241223.ea91db2-4) ... 71s Setting up python3-executing (2.2.0-0.2) ... 71s Setting up python3-nest-asyncio (1.5.4-1) ... 71s Setting up libbabeltrace1:s390x (1.5.11-4build3) ... 71s Setting up python3-pluggy (1.6.0-1) ... 71s Setting up python3-traitlets (5.14.3+really5.14.3-1) ... 71s Setting up python3-stack-data (0.6.3-1) ... 71s Setting up python3.14-minimal (3.14.0-4) ... 72s Setting up python3-jupyter-core (5.7.2-5) ... 72s Setting up python3-prompt-toolkit (3.0.52-1) ... 73s Setting up libzmq5:s390x (4.3.5-1build2) ... 73s Setting up python3-jedi (0.19.1+ds1-1) ... 73s Setting up libpython3.14-stdlib:s390x (3.14.0-4) ... 73s Setting up python3-pytest (8.4.2-1) ... 73s Setting up libsource-highlight4t64:s390x (3.1.9-4.3build1) ... 73s Setting up python3-matplotlib-inline (0.1.7-1) ... 74s Setting up python3-comm (0.2.1-1) ... 74s Setting up gdb (16.3-1ubuntu2) ... 74s Setting up python3-ipython (8.35.0-2) ... 74s /usr/lib/python3/dist-packages/IPython/core/interactiveshell.py:3141: SyntaxWarning: 'return' in a 'finally' block 74s return result 74s Setting up python3-zmq (27.1.0-1) ... 75s Setting up python3-pytest-asyncio (1.2.0-1) ... 75s Setting up python3-jupyter-client (8.6.3-3) ... 75s Setting up python3.14 (3.14.0-4) ... 76s Setting up python3-pytest-timeout (2.3.1-2) ... 76s Setting up python3-all (3.13.7-2) ... 76s Setting up python3-debugpy (1.8.12+ds-1ubuntu1) ... 77s Setting up python3-ipykernel (6.29.5-2) ... 77s Setting up python3-ipyparallel (8.8.0-5) ... 77s Processing triggers for systemd (257.9-0ubuntu2) ... 77s Processing triggers for man-db (2.13.1-1) ... 78s Processing triggers for libc-bin (2.42-2ubuntu2) ... 79s autopkgtest [12:07:52]: test pytest: [----------------------- 79s + py3versions -s 79s + PYS=python3.14 python3.13 79s + cp -r tests /tmp/autopkgtest.zN4IKP/autopkgtest_tmp 79s Testing with python3.14: 79s + cd /tmp/autopkgtest.zN4IKP/autopkgtest_tmp 79s + echo Testing with python3.14: 79s + timeout 300 python3.14 -m pytest -v -k not test_init_ipc_socket 79s ============================= test session starts ============================== 79s platform linux -- Python 3.14.0, pytest-8.4.2, pluggy-1.6.0 -- /usr/bin/python3.14 79s cachedir: .pytest_cache 79s rootdir: /tmp/autopkgtest.zN4IKP/autopkgtest_tmp 79s plugins: typeguard-4.4.2, flaky-3.8.1, asyncio-1.2.0, timeout-2.3.1 79s asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function 80s collecting ... collected 186 items / 1 deselected / 185 selected 80s 80s tests/inprocess/test_kernel.py::test_with_cell_id ERROR [ 0%] 80s tests/inprocess/test_kernel.py::test_pylab ERROR [ 1%] 80s tests/inprocess/test_kernel.py::test_raw_input ERROR [ 1%] 80s tests/inprocess/test_kernel.py::test_stdout ERROR [ 2%] 80s tests/inprocess/test_kernel.py::test_capfd SKIPPED (Currently don't ...) [ 2%] 80s tests/inprocess/test_kernel.py::test_getpass_stream ERROR [ 3%] 81s tests/inprocess/test_kernel.py::test_do_execute ERROR [ 3%] 81s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_complete FAILED [ 4%] 81s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_execute FAILED [ 4%] 81s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_history FAILED [ 5%] 81s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_inspect FAILED [ 5%] 81s tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_interface FAILED [ 6%] 82s tests/test_async.py::test_async_await PASSED [ 7%] 89s tests/test_async.py::test_async_interrupt[asyncio] PASSED [ 7%] 92s tests/test_async.py::test_async_interrupt[trio] PASSED [ 8%] 92s tests/test_async.py::test_async_interrupt[curio] SKIPPED (Requires c...) [ 8%] 92s tests/test_comm.py::test_comm PASSED [ 9%] 92s tests/test_comm.py::test_comm_manager PASSED [ 9%] 93s tests/test_comm.py::test_comm_in_manager ERROR [ 10%] 93s tests/test_connect.py::test_get_connection_file PASSED [ 10%] 93s tests/test_connect.py::test_get_connection_info PASSED [ 11%] 93s tests/test_connect.py::test_port_bind_failure_raises PASSED [ 11%] 93s tests/test_connect.py::test_port_bind_failure_recovery PASSED [ 12%] 93s tests/test_connect.py::test_port_bind_failure_gives_up_retries PASSED [ 12%] 94s tests/test_debugger.py::test_debug_initialize PASSED [ 13%] 95s tests/test_debugger.py::test_attach_debug PASSED [ 14%] 96s tests/test_debugger.py::test_set_breakpoints PASSED [ 14%] 98s tests/test_debugger.py::test_stop_on_breakpoint PASSED [ 15%] 99s tests/test_debugger.py::test_breakpoint_in_cell_with_leading_empty_lines PASSED [ 15%] 101s tests/test_debugger.py::test_rich_inspect_not_at_breakpoint PASSED [ 16%] 102s tests/test_debugger.py::test_rich_inspect_at_breakpoint PASSED [ 16%] 102s tests/test_debugger.py::test_convert_to_long_pathname PASSED [ 17%] 104s tests/test_debugger.py::test_copy_to_globals PASSED [ 17%] 105s tests/test_embed_kernel.py::test_embed_kernel_basic FAILED [ 18%] 107s tests/test_embed_kernel.py::test_embed_kernel_namespace FAILED [ 18%] 108s tests/test_embed_kernel.py::test_embed_kernel_reentrant FAILED [ 19%] 108s tests/test_embed_kernel.py::test_embed_kernel_func NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work. 108s 108s To exit, you will have to explicitly quit this process, by either sending 108s "quit" from a client, or using Ctrl-\ in UNIX-like environments. 108s 108s To read more about this, see https://github.com/ipython/ipython/issues/2049 108s 108s 108s To connect another client to this kernel, use: 108s --existing kernel-2715.json 108s FAILED [ 20%] 110s tests/test_eventloop.py::test_asyncio_interrupt PASSED [ 20%] 112s tests/test_eventloop.py::test_tk_loop PASSED [ 21%] 113s tests/test_eventloop.py::test_asyncio_loop PASSED [ 21%] 114s tests/test_eventloop.py::test_enable_gui PASSED [ 22%] 114s tests/test_eventloop.py::test_cocoa_loop SKIPPED (MacOS-only) [ 22%] 114s tests/test_eventloop.py::test_qt_enable_gui SKIPPED (No viable versi...) [ 23%] 114s tests/test_heartbeat.py::test_port_bind_failure_raises PASSED [ 23%] 114s tests/test_heartbeat.py::test_port_bind_success PASSED [ 24%] 114s tests/test_heartbeat.py::test_port_bind_failure_recovery PASSED [ 24%] 114s tests/test_heartbeat.py::test_port_bind_failure_gives_up_retries PASSED [ 25%] 114s tests/test_io.py::test_io_api PASSED [ 25%] 114s tests/test_io.py::test_io_isatty PASSED [ 26%] 114s tests/test_io.py::test_io_thread PASSED [ 27%] 114s tests/test_io.py::test_background_socket PASSED [ 27%] 114s tests/test_io.py::test_outstream PASSED [ 28%] 114s tests/test_io.py::test_event_pipe_gc FAILED [ 28%] 115s tests/test_io.py::test_echo_watch PASSED [ 29%] 115s tests/test_ipkernel_direct.py::test_properties ERROR [ 29%] 116s tests/test_ipkernel_direct.py::test_direct_kernel_info_request ERROR [ 30%] 116s tests/test_ipkernel_direct.py::test_direct_execute_request ERROR [ 30%] 116s tests/test_ipkernel_direct.py::test_direct_execute_request_aborting ERROR [ 31%] 116s tests/test_ipkernel_direct.py::test_complete_request ERROR [ 31%] 116s tests/test_ipkernel_direct.py::test_inspect_request ERROR [ 32%] 116s tests/test_ipkernel_direct.py::test_history_request ERROR [ 32%] 116s tests/test_ipkernel_direct.py::test_comm_info_request ERROR [ 33%] 117s tests/test_ipkernel_direct.py::test_direct_interrupt_request ERROR [ 34%] 117s tests/test_ipkernel_direct.py::test_is_complete_request ERROR [ 34%] 117s tests/test_ipkernel_direct.py::test_do_apply ERROR [ 35%] 117s tests/test_ipkernel_direct.py::test_direct_debug_request ERROR [ 35%] 117s tests/test_ipkernel_direct.py::test_direct_clear ERROR [ 36%] 117s tests/test_ipkernel_direct.py::test_cancel_on_sigint ERROR [ 36%] 117s tests/test_ipkernel_direct.py::test_dispatch_debugpy ERROR [ 37%] 117s tests/test_ipkernel_direct.py::test_start ERROR [ 37%] 118s tests/test_ipkernel_direct.py::test_start_no_debugpy ERROR [ 38%] 118s tests/test_ipkernel_direct.py::test_create_comm PASSED [ 38%] 118s tests/test_ipkernel_direct.py::test_finish_metadata ERROR [ 39%] 118s tests/test_ipkernel_direct.py::test_do_debug_request ERROR [ 40%] 118s tests/test_jsonutil.py::test SKIPPED (json_clean is a no-op) [ 40%] 118s tests/test_jsonutil.py::test_encode_images SKIPPED (json_clean is a ...) [ 41%] 118s tests/test_jsonutil.py::test_lambda SKIPPED (json_clean is a no-op) [ 41%] 118s tests/test_jsonutil.py::test_exception SKIPPED (json_clean is a no-op) [ 42%] 118s tests/test_jsonutil.py::test_unicode_dict SKIPPED (json_clean is a n...) [ 42%] 119s tests/test_kernel.py::test_simple_print PASSED [ 43%] 120s tests/test_kernel.py::test_print_to_correct_cell_from_thread PASSED [ 43%] 121s tests/test_kernel.py::test_print_to_correct_cell_from_child_thread PASSED [ 44%] 123s tests/test_kernel.py::test_print_to_correct_cell_from_asyncio PASSED [ 44%] 123s tests/test_kernel.py::test_capture_fd SKIPPED (Currently don't captu...) [ 45%] 123s tests/test_kernel.py::test_subprocess_peek_at_stream_fileno SKIPPED [ 45%] 123s tests/test_kernel.py::test_sys_path PASSED [ 46%] 123s tests/test_kernel.py::test_sys_path_profile_dir PASSED [ 47%] 126s tests/test_kernel.py::test_subprocess_print PASSED [ 47%] 126s tests/test_kernel.py::test_subprocess_noprint PASSED [ 48%] 127s tests/test_kernel.py::test_subprocess_error PASSED [ 48%] 127s tests/test_kernel.py::test_raw_input PASSED [ 49%] 128s tests/test_kernel.py::test_save_history PASSED [ 49%] 128s tests/test_kernel.py::test_smoke_faulthandler PASSED [ 50%] 128s tests/test_kernel.py::test_help_output PASSED [ 50%] 128s tests/test_kernel.py::test_is_complete PASSED [ 51%] 128s tests/test_kernel.py::test_complete SKIPPED (only run on Windows) [ 51%] 128s tests/test_kernel.py::test_matplotlib_inline_on_import SKIPPED (this...) [ 52%] 129s tests/test_kernel.py::test_message_order PASSED [ 52%] 129s tests/test_kernel.py::test_unc_paths SKIPPED (test only on windows) [ 53%] 130s tests/test_kernel.py::test_shutdown PASSED [ 54%] 132s tests/test_kernel.py::test_interrupt_during_input PASSED [ 54%] 134s tests/test_kernel.py::test_interrupt_with_message PASSED [ 55%] 135s tests/test_kernel.py::test_interrupt_during_pdb_set_trace PASSED [ 55%] 138s tests/test_kernel.py::test_control_thread_priority PASSED [ 56%] 138s tests/test_kernel.py::test_shutdown_subprocesses SKIPPED (Stalls on ...) [ 56%] 138s tests/test_kernel_direct.py::test_direct_kernel_info_request FAILED [ 57%] 138s tests/test_kernel_direct.py::test_direct_execute_request FAILED [ 57%] 138s tests/test_kernel_direct.py::test_direct_execute_request_aborting FAILED [ 58%] 138s tests/test_kernel_direct.py::test_direct_execute_request_error FAILED [ 58%] 138s tests/test_kernel_direct.py::test_complete_request FAILED [ 59%] 138s tests/test_kernel_direct.py::test_inspect_request FAILED [ 60%] 138s tests/test_kernel_direct.py::test_history_request FAILED [ 60%] 138s tests/test_kernel_direct.py::test_comm_info_request FAILED [ 61%] 138s tests/test_kernel_direct.py::test_direct_interrupt_request FAILED [ 61%] 138s tests/test_kernel_direct.py::test_direct_shutdown_request FAILED [ 62%] 138s tests/test_kernel_direct.py::test_is_complete_request FAILED [ 62%] 138s tests/test_kernel_direct.py::test_direct_debug_request FAILED [ 63%] 138s tests/test_kernel_direct.py::test_deprecated_features FAILED [ 63%] 138s tests/test_kernel_direct.py::test_process_control FAILED [ 64%] 138s tests/test_kernel_direct.py::test_should_handle PASSED [ 64%] 138s tests/test_kernel_direct.py::test_dispatch_shell FAILED [ 65%] 138s tests/test_kernel_direct.py::test_do_one_iteration FAILED [ 65%] 138s tests/test_kernel_direct.py::test_publish_debug_event FAILED [ 66%] 138s tests/test_kernel_direct.py::test_connect_request FAILED [ 67%] 138s tests/test_kernel_direct.py::test_send_interrupt_children FAILED [ 67%] 138s tests/test_kernelapp.py::test_blackhole PASSED [ 68%] 139s tests/test_kernelapp.py::test_start_app PASSED [ 68%] 139s tests/test_kernelapp.py::test_merge_connection_file PASSED [ 69%] 139s tests/test_kernelapp.py::test_trio_loop PASSED [ 69%] 139s tests/test_kernelspec.py::test_make_ipkernel_cmd PASSED [ 70%] 139s tests/test_kernelspec.py::test_get_kernel_dict PASSED [ 70%] 139s tests/test_kernelspec.py::test_get_kernel_dict_with_profile PASSED [ 71%] 139s tests/test_kernelspec.py::test_write_kernel_spec PASSED [ 71%] 139s tests/test_kernelspec.py::test_write_kernel_spec_path PASSED [ 72%] 139s tests/test_kernelspec.py::test_install_kernelspec FAILED [ 72%] 139s tests/test_kernelspec.py::test_install_user PASSED [ 73%] 139s tests/test_kernelspec.py::test_install PASSED [ 74%] 139s tests/test_kernelspec.py::test_install_profile PASSED [ 74%] 139s tests/test_kernelspec.py::test_install_display_name_overrides_profile PASSED [ 75%] 139s tests/test_kernelspec.py::test_install_env[None] PASSED [ 75%] 139s tests/test_kernelspec.py::test_install_env[env1] PASSED [ 76%] 139s tests/test_kernelspec.py::test_install_env[env2] PASSED [ 76%] 139s tests/test_kernelspec.py::test_install_frozen_modules_on PASSED [ 77%] 139s tests/test_kernelspec.py::test_install_frozen_modules_off PASSED [ 77%] 139s tests/test_kernelspec.py::test_install_frozen_modules_no_op SKIPPED [ 78%] 139s tests/test_message_spec.py::test_execute PASSED [ 78%] 140s tests/test_message_spec.py::test_execute_silent PASSED [ 79%] 141s tests/test_message_spec.py::test_execute_error PASSED [ 80%] 141s tests/test_message_spec.py::test_execute_inc PASSED [ 80%] 144s tests/test_message_spec.py::test_execute_stop_on_error PASSED [ 81%] 145s tests/test_message_spec.py::test_non_execute_stop_on_error PASSED [ 81%] 145s tests/test_message_spec.py::test_user_expressions PASSED [ 82%] 145s tests/test_message_spec.py::test_user_expressions_fail PASSED [ 82%] 146s tests/test_message_spec.py::test_oinfo PASSED [ 83%] 146s tests/test_message_spec.py::test_oinfo_found PASSED [ 83%] 147s tests/test_message_spec.py::test_oinfo_detail PASSED [ 84%] 147s tests/test_message_spec.py::test_oinfo_not_found PASSED [ 84%] 148s tests/test_message_spec.py::test_complete PASSED [ 85%] 148s tests/test_message_spec.py::test_kernel_info_request PASSED [ 85%] 149s tests/test_message_spec.py::test_connect_request PASSED [ 86%] 149s tests/test_message_spec.py::test_comm_info_request PASSED [ 87%] 149s tests/test_message_spec.py::test_single_payload PASSED [ 87%] 150s tests/test_message_spec.py::test_is_complete PASSED [ 88%] 150s tests/test_message_spec.py::test_history_range PASSED [ 88%] 151s tests/test_message_spec.py::test_history_tail PASSED [ 89%] 151s tests/test_message_spec.py::test_history_search PASSED [ 89%] 151s tests/test_message_spec.py::test_stream PASSED [ 90%] 152s tests/test_message_spec.py::test_display_data PASSED [ 90%] 152s tests/test_parentpoller.py::test_parent_poller_unix PASSED [ 91%] 152s tests/test_parentpoller.py::test_parent_poller_windows SKIPPED (only...) [ 91%] 152s tests/test_pickleutil.py::test_no_closure PASSED [ 92%] 152s tests/test_pickleutil.py::test_generator_closure PASSED [ 92%] 152s tests/test_pickleutil.py::test_nested_closure PASSED [ 93%] 152s tests/test_pickleutil.py::test_closure PASSED [ 94%] 152s tests/test_pickleutil.py::test_uncan_bytes_buffer PASSED [ 94%] 153s tests/test_start_kernel.py::test_ipython_start_kernel_userns FAILED [ 95%] 155s tests/test_start_kernel.py::test_ipython_start_kernel_no_userns FAILED [ 95%] 155s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_hook_halts_send PASSED [ 96%] 155s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_hook_return_calls_send PASSED [ 96%] 155s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_display_publisher_creation PASSED [ 97%] 155s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_publish PASSED [ 97%] 155s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_thread_local_hooks PASSED [ 98%] 155s tests/test_zmq_shell.py::ZMQDisplayPublisherTests::test_unregister_hook PASSED [ 98%] 155s tests/test_zmq_shell.py::test_magics PASSED [ 99%] 155s tests/test_zmq_shell.py::test_zmq_interactive_shell PASSED [100%] 155s 155s ==================================== ERRORS ==================================== 155s _____________________ ERROR at setup of test_with_cell_id ______________________ 155s 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 155s 155s if IS_PY312_OR_GREATER: 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring_cython import * 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring import * 155s 155s else: 155s try: 155s > from ._pydevd_sys_monitoring_cython import * 155s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s > from _pydevd_bundle_ext import pydevd_cython as mod 155s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s > from _pydevd_bundle import pydevd_cython as mod 155s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 155s 155s During handling of the above exception, another exception occurred: 155s 155s # Defines which version of the trace_dispatch we'll use. 155s # Should give warning only here if cython is not available but supported. 155s 155s import os 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 155s from _pydev_bundle import pydev_log 155s 155s dirname = os.path.dirname(os.path.dirname(__file__)) 155s USING_CYTHON = False 155s 155s 155s def delete_old_compiled_extensions(): 155s import _pydevd_bundle 155s 155s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 155s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 155s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 155s try: 155s import shutil 155s 155s for file in os.listdir(_pydevd_bundle_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 155s for file in os.listdir(_pydevd_frame_eval_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 155s build_dir = os.path.join(cython_extensions_dir, "build") 155s if os.path.exists(build_dir): 155s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 155s except OSError: 155s pydev_log.error_once( 155s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 155s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 155s ) 155s 155s 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s # We must import the cython version if forcing cython 155s from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s USING_CYTHON = True 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s # Use the regular version if not forcing cython 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) # @UnusedImport 155s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s else: 155s # Regular: use fallback if not found and give message to user 155s try: 155s > from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s from _pydevd_bundle import pydevd_cython as mod 155s 155s except ImportError: 155s import struct 155s 155s try: 155s is_python_64bit = struct.calcsize("P") == 8 155s except: 155s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 155s raise ImportError 155s plat = "32" 155s if is_python_64bit: 155s plat = "64" 155s 155s # We also accept things as: 155s # 155s # _pydevd_bundle.pydevd_cython_win32_27_32 155s # _pydevd_bundle.pydevd_cython_win32_34_64 155s # 155s # to have multiple pre-compiled pyds distributed along the IDE 155s # (generated by build_tools/build_binaries_windows.py). 155s 155s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 155s check_name = "_pydevd_bundle.%s" % (mod_name,) 155s > mod = getattr(__import__(check_name), mod_name) 155s ^^^^^^^^^^^^^^^^^^^^^^ 155s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s @pytest.fixture() 155s def kc(): 155s km = InProcessKernelManager() 155s > km.start_kernel() 155s 155s tests/inprocess/test_kernel.py:44: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 155s self.kernel = InProcessKernel(parent=self, session=self.session) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 155s super().__init__(**traits) 155s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 155s from .debugger import Debugger, _is_debugpy_available 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 155s raise e 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 155s from debugpy.server import api # noqa: F401 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 155s import debugpy._vendored.force_pydevd # noqa 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 155s preimport('pydevd', [ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 155s import_module(name) 155s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 155s return _bootstrap._gcd_import(name[level:], package, level) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 155s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 155s from _pydevd_bundle import pydevd_vars 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 155s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 155s from _pydevd_sys_monitoring import pydevd_sys_monitoring 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 155s from ._pydevd_sys_monitoring import * 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 155s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 155s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 155s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:9: in 155s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 155s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 155s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import opcode as _opcode 155s from enum import IntFlag 155s from typing import Optional, Union 155s 155s # alias to keep the 'bytecode' variable free 155s from _pydevd_frame_eval.vendored import bytecode as _bytecode 155s 155s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 155s from .utils import PY311, PY312, PY313 155s 155s 155s class CompilerFlags(IntFlag): 155s """Possible values of the co_flags attribute of Code object. 155s 155s Note: We do not rely on inspect values here as some of them are missing and 155s furthermore would be version dependent. 155s 155s """ 155s 155s OPTIMIZED = 0x00001 155s NEWLOCALS = 0x00002 155s VARARGS = 0x00004 155s VARKEYWORDS = 0x00008 155s NESTED = 0x00010 155s GENERATOR = 0x00020 155s NOFREE = 0x00040 155s # New in Python 3.5 155s # Used for coroutines defined using async def ie native coroutine 155s COROUTINE = 0x00080 155s # Used for coroutines defined as a generator and then decorated using 155s # types.coroutine 155s ITERABLE_COROUTINE = 0x00100 155s # New in Python 3.6 155s # Generator defined in an async def function 155s ASYNC_GENERATOR = 0x00200 155s 155s FUTURE_GENERATOR_STOP = 0x800000 155s FUTURE_ANNOTATIONS = 0x1000000 155s 155s 155s UNOPTIMIZED_OPCODES = ( 155s _opcode.opmap["STORE_NAME"], 155s _opcode.opmap["LOAD_NAME"], 155s _opcode.opmap["DELETE_NAME"], 155s ) 155s 155s ASYNC_OPCODES = ( 155s _opcode.opmap["GET_AWAITABLE"], 155s _opcode.opmap["GET_AITER"], 155s _opcode.opmap["GET_ANEXT"], 155s > _opcode.opmap["BEFORE_ASYNC_WITH"], 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 155s _opcode.opmap["END_ASYNC_FOR"], 155s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 155s ) 155s E KeyError: 'BEFORE_ASYNC_WITH' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 155s ---------------------------- Captured stderr setup ----------------------------- 155s 0.00s - Debugger warning: It seems that frozen modules are being used, which may 155s 0.00s - make the debugger miss breakpoints. Please pass -Xfrozen_modules=off 155s 0.00s - to python to disable frozen modules. 155s 0.00s - Note: Debugging will proceed. Set PYDEVD_DISABLE_FILE_VALIDATION=1 to disable this validation. 155s _________________________ ERROR at setup of test_pylab _________________________ 155s 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 155s 155s if IS_PY312_OR_GREATER: 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring_cython import * 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring import * 155s 155s else: 155s try: 155s > from ._pydevd_sys_monitoring_cython import * 155s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s > from _pydevd_bundle_ext import pydevd_cython as mod 155s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s > from _pydevd_bundle import pydevd_cython as mod 155s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 155s 155s During handling of the above exception, another exception occurred: 155s 155s # Defines which version of the trace_dispatch we'll use. 155s # Should give warning only here if cython is not available but supported. 155s 155s import os 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 155s from _pydev_bundle import pydev_log 155s 155s dirname = os.path.dirname(os.path.dirname(__file__)) 155s USING_CYTHON = False 155s 155s 155s def delete_old_compiled_extensions(): 155s import _pydevd_bundle 155s 155s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 155s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 155s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 155s try: 155s import shutil 155s 155s for file in os.listdir(_pydevd_bundle_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 155s for file in os.listdir(_pydevd_frame_eval_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 155s build_dir = os.path.join(cython_extensions_dir, "build") 155s if os.path.exists(build_dir): 155s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 155s except OSError: 155s pydev_log.error_once( 155s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 155s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 155s ) 155s 155s 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s # We must import the cython version if forcing cython 155s from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s USING_CYTHON = True 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s # Use the regular version if not forcing cython 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) # @UnusedImport 155s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s else: 155s # Regular: use fallback if not found and give message to user 155s try: 155s > from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s from _pydevd_bundle import pydevd_cython as mod 155s 155s except ImportError: 155s import struct 155s 155s try: 155s is_python_64bit = struct.calcsize("P") == 8 155s except: 155s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 155s raise ImportError 155s plat = "32" 155s if is_python_64bit: 155s plat = "64" 155s 155s # We also accept things as: 155s # 155s # _pydevd_bundle.pydevd_cython_win32_27_32 155s # _pydevd_bundle.pydevd_cython_win32_34_64 155s # 155s # to have multiple pre-compiled pyds distributed along the IDE 155s # (generated by build_tools/build_binaries_windows.py). 155s 155s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 155s check_name = "_pydevd_bundle.%s" % (mod_name,) 155s > mod = getattr(__import__(check_name), mod_name) 155s ^^^^^^^^^^^^^^^^^^^^^^ 155s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s @pytest.fixture() 155s def kc(): 155s km = InProcessKernelManager() 155s > km.start_kernel() 155s 155s tests/inprocess/test_kernel.py:44: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 155s self.kernel = InProcessKernel(parent=self, session=self.session) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 155s super().__init__(**traits) 155s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 155s from .debugger import Debugger, _is_debugpy_available 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 155s raise e 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 155s from debugpy.server import api # noqa: F401 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 155s import debugpy._vendored.force_pydevd # noqa 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 155s preimport('pydevd', [ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 155s import_module(name) 155s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 155s return _bootstrap._gcd_import(name[level:], package, level) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 155s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 155s from _pydevd_bundle import pydevd_vars 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 155s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 155s from _pydevd_sys_monitoring import pydevd_sys_monitoring 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 155s from ._pydevd_sys_monitoring import * 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 155s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 155s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 155s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 155s from _pydevd_frame_eval.vendored import bytecode 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 155s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 155s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import opcode as _opcode 155s from enum import IntFlag 155s from typing import Optional, Union 155s 155s # alias to keep the 'bytecode' variable free 155s from _pydevd_frame_eval.vendored import bytecode as _bytecode 155s 155s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 155s from .utils import PY311, PY312, PY313 155s 155s 155s class CompilerFlags(IntFlag): 155s """Possible values of the co_flags attribute of Code object. 155s 155s Note: We do not rely on inspect values here as some of them are missing and 155s furthermore would be version dependent. 155s 155s """ 155s 155s OPTIMIZED = 0x00001 155s NEWLOCALS = 0x00002 155s VARARGS = 0x00004 155s VARKEYWORDS = 0x00008 155s NESTED = 0x00010 155s GENERATOR = 0x00020 155s NOFREE = 0x00040 155s # New in Python 3.5 155s # Used for coroutines defined using async def ie native coroutine 155s COROUTINE = 0x00080 155s # Used for coroutines defined as a generator and then decorated using 155s # types.coroutine 155s ITERABLE_COROUTINE = 0x00100 155s # New in Python 3.6 155s # Generator defined in an async def function 155s ASYNC_GENERATOR = 0x00200 155s 155s FUTURE_GENERATOR_STOP = 0x800000 155s FUTURE_ANNOTATIONS = 0x1000000 155s 155s 155s UNOPTIMIZED_OPCODES = ( 155s _opcode.opmap["STORE_NAME"], 155s _opcode.opmap["LOAD_NAME"], 155s _opcode.opmap["DELETE_NAME"], 155s ) 155s 155s ASYNC_OPCODES = ( 155s _opcode.opmap["GET_AWAITABLE"], 155s _opcode.opmap["GET_AITER"], 155s _opcode.opmap["GET_ANEXT"], 155s > _opcode.opmap["BEFORE_ASYNC_WITH"], 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 155s _opcode.opmap["END_ASYNC_FOR"], 155s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 155s ) 155s E KeyError: 'BEFORE_ASYNC_WITH' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 155s _______________________ ERROR at setup of test_raw_input _______________________ 155s 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 155s 155s if IS_PY312_OR_GREATER: 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring_cython import * 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring import * 155s 155s else: 155s try: 155s > from ._pydevd_sys_monitoring_cython import * 155s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s > from _pydevd_bundle_ext import pydevd_cython as mod 155s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s > from _pydevd_bundle import pydevd_cython as mod 155s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 155s 155s During handling of the above exception, another exception occurred: 155s 155s # Defines which version of the trace_dispatch we'll use. 155s # Should give warning only here if cython is not available but supported. 155s 155s import os 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 155s from _pydev_bundle import pydev_log 155s 155s dirname = os.path.dirname(os.path.dirname(__file__)) 155s USING_CYTHON = False 155s 155s 155s def delete_old_compiled_extensions(): 155s import _pydevd_bundle 155s 155s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 155s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 155s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 155s try: 155s import shutil 155s 155s for file in os.listdir(_pydevd_bundle_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 155s for file in os.listdir(_pydevd_frame_eval_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 155s build_dir = os.path.join(cython_extensions_dir, "build") 155s if os.path.exists(build_dir): 155s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 155s except OSError: 155s pydev_log.error_once( 155s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 155s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 155s ) 155s 155s 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s # We must import the cython version if forcing cython 155s from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s USING_CYTHON = True 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s # Use the regular version if not forcing cython 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) # @UnusedImport 155s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s else: 155s # Regular: use fallback if not found and give message to user 155s try: 155s > from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s from _pydevd_bundle import pydevd_cython as mod 155s 155s except ImportError: 155s import struct 155s 155s try: 155s is_python_64bit = struct.calcsize("P") == 8 155s except: 155s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 155s raise ImportError 155s plat = "32" 155s if is_python_64bit: 155s plat = "64" 155s 155s # We also accept things as: 155s # 155s # _pydevd_bundle.pydevd_cython_win32_27_32 155s # _pydevd_bundle.pydevd_cython_win32_34_64 155s # 155s # to have multiple pre-compiled pyds distributed along the IDE 155s # (generated by build_tools/build_binaries_windows.py). 155s 155s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 155s check_name = "_pydevd_bundle.%s" % (mod_name,) 155s > mod = getattr(__import__(check_name), mod_name) 155s ^^^^^^^^^^^^^^^^^^^^^^ 155s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s @pytest.fixture() 155s def kc(): 155s km = InProcessKernelManager() 155s > km.start_kernel() 155s 155s tests/inprocess/test_kernel.py:44: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 155s self.kernel = InProcessKernel(parent=self, session=self.session) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 155s super().__init__(**traits) 155s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 155s from .debugger import Debugger, _is_debugpy_available 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 155s raise e 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 155s from debugpy.server import api # noqa: F401 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 155s import debugpy._vendored.force_pydevd # noqa 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 155s preimport('pydevd', [ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 155s import_module(name) 155s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 155s return _bootstrap._gcd_import(name[level:], package, level) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 155s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 155s from _pydevd_bundle import pydevd_vars 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 155s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 155s from _pydevd_sys_monitoring import pydevd_sys_monitoring 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 155s from ._pydevd_sys_monitoring import * 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 155s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 155s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 155s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 155s from _pydevd_frame_eval.vendored import bytecode 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 155s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 155s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import opcode as _opcode 155s from enum import IntFlag 155s from typing import Optional, Union 155s 155s # alias to keep the 'bytecode' variable free 155s from _pydevd_frame_eval.vendored import bytecode as _bytecode 155s 155s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 155s from .utils import PY311, PY312, PY313 155s 155s 155s class CompilerFlags(IntFlag): 155s """Possible values of the co_flags attribute of Code object. 155s 155s Note: We do not rely on inspect values here as some of them are missing and 155s furthermore would be version dependent. 155s 155s """ 155s 155s OPTIMIZED = 0x00001 155s NEWLOCALS = 0x00002 155s VARARGS = 0x00004 155s VARKEYWORDS = 0x00008 155s NESTED = 0x00010 155s GENERATOR = 0x00020 155s NOFREE = 0x00040 155s # New in Python 3.5 155s # Used for coroutines defined using async def ie native coroutine 155s COROUTINE = 0x00080 155s # Used for coroutines defined as a generator and then decorated using 155s # types.coroutine 155s ITERABLE_COROUTINE = 0x00100 155s # New in Python 3.6 155s # Generator defined in an async def function 155s ASYNC_GENERATOR = 0x00200 155s 155s FUTURE_GENERATOR_STOP = 0x800000 155s FUTURE_ANNOTATIONS = 0x1000000 155s 155s 155s UNOPTIMIZED_OPCODES = ( 155s _opcode.opmap["STORE_NAME"], 155s _opcode.opmap["LOAD_NAME"], 155s _opcode.opmap["DELETE_NAME"], 155s ) 155s 155s ASYNC_OPCODES = ( 155s _opcode.opmap["GET_AWAITABLE"], 155s _opcode.opmap["GET_AITER"], 155s _opcode.opmap["GET_ANEXT"], 155s > _opcode.opmap["BEFORE_ASYNC_WITH"], 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 155s _opcode.opmap["END_ASYNC_FOR"], 155s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 155s ) 155s E KeyError: 'BEFORE_ASYNC_WITH' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 155s ________________________ ERROR at setup of test_stdout _________________________ 155s 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 155s 155s if IS_PY312_OR_GREATER: 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring_cython import * 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring import * 155s 155s else: 155s try: 155s > from ._pydevd_sys_monitoring_cython import * 155s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s > from _pydevd_bundle_ext import pydevd_cython as mod 155s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s > from _pydevd_bundle import pydevd_cython as mod 155s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 155s 155s During handling of the above exception, another exception occurred: 155s 155s # Defines which version of the trace_dispatch we'll use. 155s # Should give warning only here if cython is not available but supported. 155s 155s import os 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 155s from _pydev_bundle import pydev_log 155s 155s dirname = os.path.dirname(os.path.dirname(__file__)) 155s USING_CYTHON = False 155s 155s 155s def delete_old_compiled_extensions(): 155s import _pydevd_bundle 155s 155s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 155s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 155s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 155s try: 155s import shutil 155s 155s for file in os.listdir(_pydevd_bundle_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 155s for file in os.listdir(_pydevd_frame_eval_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 155s build_dir = os.path.join(cython_extensions_dir, "build") 155s if os.path.exists(build_dir): 155s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 155s except OSError: 155s pydev_log.error_once( 155s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 155s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 155s ) 155s 155s 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s # We must import the cython version if forcing cython 155s from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s USING_CYTHON = True 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s # Use the regular version if not forcing cython 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) # @UnusedImport 155s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s else: 155s # Regular: use fallback if not found and give message to user 155s try: 155s > from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s from _pydevd_bundle import pydevd_cython as mod 155s 155s except ImportError: 155s import struct 155s 155s try: 155s is_python_64bit = struct.calcsize("P") == 8 155s except: 155s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 155s raise ImportError 155s plat = "32" 155s if is_python_64bit: 155s plat = "64" 155s 155s # We also accept things as: 155s # 155s # _pydevd_bundle.pydevd_cython_win32_27_32 155s # _pydevd_bundle.pydevd_cython_win32_34_64 155s # 155s # to have multiple pre-compiled pyds distributed along the IDE 155s # (generated by build_tools/build_binaries_windows.py). 155s 155s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 155s check_name = "_pydevd_bundle.%s" % (mod_name,) 155s > mod = getattr(__import__(check_name), mod_name) 155s ^^^^^^^^^^^^^^^^^^^^^^ 155s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s @pytest.fixture() 155s def kc(): 155s km = InProcessKernelManager() 155s > km.start_kernel() 155s 155s tests/inprocess/test_kernel.py:44: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 155s self.kernel = InProcessKernel(parent=self, session=self.session) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 155s super().__init__(**traits) 155s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 155s from .debugger import Debugger, _is_debugpy_available 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 155s raise e 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 155s from debugpy.server import api # noqa: F401 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 155s import debugpy._vendored.force_pydevd # noqa 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 155s preimport('pydevd', [ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 155s import_module(name) 155s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 155s return _bootstrap._gcd_import(name[level:], package, level) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 155s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 155s from _pydevd_bundle import pydevd_vars 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 155s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 155s from _pydevd_sys_monitoring import pydevd_sys_monitoring 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 155s from ._pydevd_sys_monitoring import * 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 155s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 155s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 155s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 155s from _pydevd_frame_eval.vendored import bytecode 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 155s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 155s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import opcode as _opcode 155s from enum import IntFlag 155s from typing import Optional, Union 155s 155s # alias to keep the 'bytecode' variable free 155s from _pydevd_frame_eval.vendored import bytecode as _bytecode 155s 155s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 155s from .utils import PY311, PY312, PY313 155s 155s 155s class CompilerFlags(IntFlag): 155s """Possible values of the co_flags attribute of Code object. 155s 155s Note: We do not rely on inspect values here as some of them are missing and 155s furthermore would be version dependent. 155s 155s """ 155s 155s OPTIMIZED = 0x00001 155s NEWLOCALS = 0x00002 155s VARARGS = 0x00004 155s VARKEYWORDS = 0x00008 155s NESTED = 0x00010 155s GENERATOR = 0x00020 155s NOFREE = 0x00040 155s # New in Python 3.5 155s # Used for coroutines defined using async def ie native coroutine 155s COROUTINE = 0x00080 155s # Used for coroutines defined as a generator and then decorated using 155s # types.coroutine 155s ITERABLE_COROUTINE = 0x00100 155s # New in Python 3.6 155s # Generator defined in an async def function 155s ASYNC_GENERATOR = 0x00200 155s 155s FUTURE_GENERATOR_STOP = 0x800000 155s FUTURE_ANNOTATIONS = 0x1000000 155s 155s 155s UNOPTIMIZED_OPCODES = ( 155s _opcode.opmap["STORE_NAME"], 155s _opcode.opmap["LOAD_NAME"], 155s _opcode.opmap["DELETE_NAME"], 155s ) 155s 155s ASYNC_OPCODES = ( 155s _opcode.opmap["GET_AWAITABLE"], 155s _opcode.opmap["GET_AITER"], 155s _opcode.opmap["GET_ANEXT"], 155s > _opcode.opmap["BEFORE_ASYNC_WITH"], 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 155s _opcode.opmap["END_ASYNC_FOR"], 155s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 155s ) 155s E KeyError: 'BEFORE_ASYNC_WITH' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 155s ____________________ ERROR at setup of test_getpass_stream _____________________ 155s 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 155s 155s if IS_PY312_OR_GREATER: 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring_cython import * 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s from ._pydevd_sys_monitoring import * 155s 155s else: 155s try: 155s > from ._pydevd_sys_monitoring_cython import * 155s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s > from _pydevd_bundle_ext import pydevd_cython as mod 155s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s > from _pydevd_bundle import pydevd_cython as mod 155s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 155s 155s During handling of the above exception, another exception occurred: 155s 155s # Defines which version of the trace_dispatch we'll use. 155s # Should give warning only here if cython is not available but supported. 155s 155s import os 155s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 155s from _pydev_bundle import pydev_log 155s 155s dirname = os.path.dirname(os.path.dirname(__file__)) 155s USING_CYTHON = False 155s 155s 155s def delete_old_compiled_extensions(): 155s import _pydevd_bundle 155s 155s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 155s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 155s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 155s try: 155s import shutil 155s 155s for file in os.listdir(_pydevd_bundle_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 155s for file in os.listdir(_pydevd_frame_eval_ext_dir): 155s if file.startswith("pydevd") and file.endswith(".so"): 155s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 155s build_dir = os.path.join(cython_extensions_dir, "build") 155s if os.path.exists(build_dir): 155s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 155s except OSError: 155s pydev_log.error_once( 155s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 155s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 155s ) 155s 155s 155s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 155s # We must import the cython version if forcing cython 155s from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s USING_CYTHON = True 155s 155s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 155s # Use the regular version if not forcing cython 155s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) # @UnusedImport 155s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 155s 155s else: 155s # Regular: use fallback if not found and give message to user 155s try: 155s > from _pydevd_bundle.pydevd_cython_wrapper import ( 155s trace_dispatch, 155s global_cache_skips, 155s global_cache_frame_skips, 155s fix_top_level_trace_and_get_trace_func, 155s ) 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s 155s import sys 155s 155s try: 155s try: 155s from _pydevd_bundle_ext import pydevd_cython as mod 155s 155s except ImportError: 155s from _pydevd_bundle import pydevd_cython as mod 155s 155s except ImportError: 155s import struct 155s 155s try: 155s is_python_64bit = struct.calcsize("P") == 8 155s except: 155s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 155s raise ImportError 155s plat = "32" 155s if is_python_64bit: 155s plat = "64" 155s 155s # We also accept things as: 155s # 155s # _pydevd_bundle.pydevd_cython_win32_27_32 155s # _pydevd_bundle.pydevd_cython_win32_34_64 155s # 155s # to have multiple pre-compiled pyds distributed along the IDE 155s # (generated by build_tools/build_binaries_windows.py). 155s 155s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 155s check_name = "_pydevd_bundle.%s" % (mod_name,) 155s > mod = getattr(__import__(check_name), mod_name) 155s ^^^^^^^^^^^^^^^^^^^^^^ 155s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 155s 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 155s 155s During handling of the above exception, another exception occurred: 155s 155s @pytest.fixture() 155s def kc(): 155s km = InProcessKernelManager() 155s > km.start_kernel() 155s 155s tests/inprocess/test_kernel.py:44: 155s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 155s self.kernel = InProcessKernel(parent=self, session=self.session) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 155s super().__init__(**traits) 155s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 155s from .debugger import Debugger, _is_debugpy_available 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 155s raise e 155s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 155s from debugpy.server import api # noqa: F401 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 155s import debugpy._vendored.force_pydevd # noqa 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 155s preimport('pydevd', [ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 155s import_module(name) 155s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 155s return _bootstrap._gcd_import(name[level:], package, level) 155s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 155s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 155s from _pydevd_bundle import pydevd_vars 155s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ______________________ ERROR at setup of test_do_execute _______________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s @pytest.fixture() 156s def kc(): 156s km = InProcessKernelManager() 156s > km.start_kernel() 156s 156s tests/inprocess/test_kernel.py:44: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 156s self.kernel = InProcessKernel(parent=self, session=self.session) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 156s super().__init__(**traits) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ____________________ ERROR at setup of test_comm_in_manager ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ______________________ ERROR at setup of test_properties _______________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ______________ ERROR at setup of test_direct_kernel_info_request _______________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ________________ ERROR at setup of test_direct_execute_request _________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ____________ ERROR at setup of test_direct_execute_request_aborting ____________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ___________________ ERROR at setup of test_complete_request ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ____________________ ERROR at setup of test_inspect_request ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ____________________ ERROR at setup of test_history_request ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ___________________ ERROR at setup of test_comm_info_request ___________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s _______________ ERROR at setup of test_direct_interrupt_request ________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s __________________ ERROR at setup of test_is_complete_request __________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s _______________________ ERROR at setup of test_do_apply ________________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s _________________ ERROR at setup of test_direct_debug_request __________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s _____________________ ERROR at setup of test_direct_clear ______________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ___________________ ERROR at setup of test_cancel_on_sigint ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ___________________ ERROR at setup of test_dispatch_debugpy ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s _________________________ ERROR at setup of test_start _________________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ___________________ ERROR at setup of test_start_no_debugpy ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ____________________ ERROR at setup of test_finish_metadata ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s ___________________ ERROR at setup of test_do_debug_request ____________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s else: 156s # Regular: use fallback if not found and give message to user 156s try: 156s > from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s from _pydevd_bundle import pydevd_cython as mod 156s 156s except ImportError: 156s import struct 156s 156s try: 156s is_python_64bit = struct.calcsize("P") == 8 156s except: 156s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 156s raise ImportError 156s plat = "32" 156s if is_python_64bit: 156s plat = "64" 156s 156s # We also accept things as: 156s # 156s # _pydevd_bundle.pydevd_cython_win32_27_32 156s # _pydevd_bundle.pydevd_cython_win32_34_64 156s # 156s # to have multiple pre-compiled pyds distributed along the IDE 156s # (generated by build_tools/build_binaries_windows.py). 156s 156s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 156s check_name = "_pydevd_bundle.%s" % (mod_name,) 156s > mod = getattr(__import__(check_name), mod_name) 156s ^^^^^^^^^^^^^^^^^^^^^^ 156s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s > lambda: ihook(item=item, **kwds), when=when, reraise=reraise 156s ^^^^^^^^^^^^^^^^^^^^^^^^ 156s ) 156s 156s /usr/lib/python3/dist-packages/flaky/flaky_pytest_plugin.py:146: 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s /usr/lib/python3/dist-packages/pytest_asyncio/plugin.py:733: in pytest_fixture_setup 156s return (yield) 156s ^^^^^ 156s tests/conftest.py:156: in ipkernel 156s kernel = MockIPyKernel() 156s ^^^^^^^^^^^^^^^ 156s tests/conftest.py:143: in __init__ 156s super().__init__(*args, **kwargs) 156s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 156s from .debugger import Debugger, _is_debugpy_available 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 156s raise e 156s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 156s from debugpy.server import api # noqa: F401 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 156s import debugpy._vendored.force_pydevd # noqa 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 156s preimport('pydevd', [ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 156s import_module(name) 156s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 156s return _bootstrap._gcd_import(name[level:], package, level) 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 156s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 156s from _pydevd_bundle import pydevd_vars 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 156s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 156s from _pydevd_sys_monitoring import pydevd_sys_monitoring 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 156s from ._pydevd_sys_monitoring import * 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 156s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 156s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 156s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 156s from _pydevd_frame_eval.vendored import bytecode 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 156s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 156s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 156s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 156s 156s import opcode as _opcode 156s from enum import IntFlag 156s from typing import Optional, Union 156s 156s # alias to keep the 'bytecode' variable free 156s from _pydevd_frame_eval.vendored import bytecode as _bytecode 156s 156s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 156s from .utils import PY311, PY312, PY313 156s 156s 156s class CompilerFlags(IntFlag): 156s """Possible values of the co_flags attribute of Code object. 156s 156s Note: We do not rely on inspect values here as some of them are missing and 156s furthermore would be version dependent. 156s 156s """ 156s 156s OPTIMIZED = 0x00001 156s NEWLOCALS = 0x00002 156s VARARGS = 0x00004 156s VARKEYWORDS = 0x00008 156s NESTED = 0x00010 156s GENERATOR = 0x00020 156s NOFREE = 0x00040 156s # New in Python 3.5 156s # Used for coroutines defined using async def ie native coroutine 156s COROUTINE = 0x00080 156s # Used for coroutines defined as a generator and then decorated using 156s # types.coroutine 156s ITERABLE_COROUTINE = 0x00100 156s # New in Python 3.6 156s # Generator defined in an async def function 156s ASYNC_GENERATOR = 0x00200 156s 156s FUTURE_GENERATOR_STOP = 0x800000 156s FUTURE_ANNOTATIONS = 0x1000000 156s 156s 156s UNOPTIMIZED_OPCODES = ( 156s _opcode.opmap["STORE_NAME"], 156s _opcode.opmap["LOAD_NAME"], 156s _opcode.opmap["DELETE_NAME"], 156s ) 156s 156s ASYNC_OPCODES = ( 156s _opcode.opmap["GET_AWAITABLE"], 156s _opcode.opmap["GET_AITER"], 156s _opcode.opmap["GET_ANEXT"], 156s > _opcode.opmap["BEFORE_ASYNC_WITH"], 156s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 156s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 156s _opcode.opmap["END_ASYNC_FOR"], 156s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 156s ) 156s E KeyError: 'BEFORE_ASYNC_WITH' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 156s =================================== FAILURES =================================== 156s _________________ InProcessKernelManagerTestCase.test_complete _________________ 156s 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 156s 156s if IS_PY312_OR_GREATER: 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring_cython import * 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s from ._pydevd_sys_monitoring import * 156s 156s else: 156s try: 156s > from ._pydevd_sys_monitoring_cython import * 156s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s > from _pydevd_bundle_ext import pydevd_cython as mod 156s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 156s 156s During handling of the above exception, another exception occurred: 156s 156s import sys 156s 156s try: 156s try: 156s from _pydevd_bundle_ext import pydevd_cython as mod 156s 156s except ImportError: 156s > from _pydevd_bundle import pydevd_cython as mod 156s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 156s 156s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 156s 156s During handling of the above exception, another exception occurred: 156s 156s # Defines which version of the trace_dispatch we'll use. 156s # Should give warning only here if cython is not available but supported. 156s 156s import os 156s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 156s from _pydev_bundle import pydev_log 156s 156s dirname = os.path.dirname(os.path.dirname(__file__)) 156s USING_CYTHON = False 156s 156s 156s def delete_old_compiled_extensions(): 156s import _pydevd_bundle 156s 156s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 156s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 156s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 156s try: 156s import shutil 156s 156s for file in os.listdir(_pydevd_bundle_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 156s for file in os.listdir(_pydevd_frame_eval_ext_dir): 156s if file.startswith("pydevd") and file.endswith(".so"): 156s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 156s build_dir = os.path.join(cython_extensions_dir, "build") 156s if os.path.exists(build_dir): 156s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 156s except OSError: 156s pydev_log.error_once( 156s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 156s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 156s ) 156s 156s 156s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 156s # We must import the cython version if forcing cython 156s from _pydevd_bundle.pydevd_cython_wrapper import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) 156s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 156s USING_CYTHON = True 156s 156s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 156s # Use the regular version if not forcing cython 156s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 156s trace_dispatch, 156s global_cache_skips, 156s global_cache_frame_skips, 156s fix_top_level_trace_and_get_trace_func, 156s ) # @UnusedImport 156s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 156s 157s else: 157s # Regular: use fallback if not found and give message to user 157s try: 157s > from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s from _pydevd_bundle import pydevd_cython as mod 157s 157s except ImportError: 157s import struct 157s 157s try: 157s is_python_64bit = struct.calcsize("P") == 8 157s except: 157s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 157s raise ImportError 157s plat = "32" 157s if is_python_64bit: 157s plat = "64" 157s 157s # We also accept things as: 157s # 157s # _pydevd_bundle.pydevd_cython_win32_27_32 157s # _pydevd_bundle.pydevd_cython_win32_34_64 157s # 157s # to have multiple pre-compiled pyds distributed along the IDE 157s # (generated by build_tools/build_binaries_windows.py). 157s 157s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 157s check_name = "_pydevd_bundle.%s" % (mod_name,) 157s > mod = getattr(__import__(check_name), mod_name) 157s ^^^^^^^^^^^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s self = 157s 157s def test_complete(self): 157s """Does requesting completion from an in-process kernel work?""" 157s km = self.km 157s > km.start_kernel() 157s 157s tests/inprocess/test_kernelmanager.py:70: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 157s self.kernel = InProcessKernel(parent=self, session=self.session) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 157s super().__init__(**traits) 157s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 157s raise e 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 157s preimport('pydevd', [ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 157s import_module(name) 157s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 157s from _pydevd_bundle import pydevd_vars 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 157s from ._pydevd_sys_monitoring import * 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 157s from _pydevd_frame_eval.vendored import bytecode 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import opcode as _opcode 157s from enum import IntFlag 157s from typing import Optional, Union 157s 157s # alias to keep the 'bytecode' variable free 157s from _pydevd_frame_eval.vendored import bytecode as _bytecode 157s 157s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 157s from .utils import PY311, PY312, PY313 157s 157s 157s class CompilerFlags(IntFlag): 157s """Possible values of the co_flags attribute of Code object. 157s 157s Note: We do not rely on inspect values here as some of them are missing and 157s furthermore would be version dependent. 157s 157s """ 157s 157s OPTIMIZED = 0x00001 157s NEWLOCALS = 0x00002 157s VARARGS = 0x00004 157s VARKEYWORDS = 0x00008 157s NESTED = 0x00010 157s GENERATOR = 0x00020 157s NOFREE = 0x00040 157s # New in Python 3.5 157s # Used for coroutines defined using async def ie native coroutine 157s COROUTINE = 0x00080 157s # Used for coroutines defined as a generator and then decorated using 157s # types.coroutine 157s ITERABLE_COROUTINE = 0x00100 157s # New in Python 3.6 157s # Generator defined in an async def function 157s ASYNC_GENERATOR = 0x00200 157s 157s FUTURE_GENERATOR_STOP = 0x800000 157s FUTURE_ANNOTATIONS = 0x1000000 157s 157s 157s UNOPTIMIZED_OPCODES = ( 157s _opcode.opmap["STORE_NAME"], 157s _opcode.opmap["LOAD_NAME"], 157s _opcode.opmap["DELETE_NAME"], 157s ) 157s 157s ASYNC_OPCODES = ( 157s _opcode.opmap["GET_AWAITABLE"], 157s _opcode.opmap["GET_AITER"], 157s _opcode.opmap["GET_ANEXT"], 157s > _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 157s _opcode.opmap["END_ASYNC_FOR"], 157s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 157s ) 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 157s _________________ InProcessKernelManagerTestCase.test_execute __________________ 157s 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 157s 157s if IS_PY312_OR_GREATER: 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring_cython import * 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring import * 157s 157s else: 157s try: 157s > from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s > from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s > from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 157s 157s During handling of the above exception, another exception occurred: 157s 157s # Defines which version of the trace_dispatch we'll use. 157s # Should give warning only here if cython is not available but supported. 157s 157s import os 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 157s from _pydev_bundle import pydev_log 157s 157s dirname = os.path.dirname(os.path.dirname(__file__)) 157s USING_CYTHON = False 157s 157s 157s def delete_old_compiled_extensions(): 157s import _pydevd_bundle 157s 157s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 157s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 157s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 157s try: 157s import shutil 157s 157s for file in os.listdir(_pydevd_bundle_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 157s for file in os.listdir(_pydevd_frame_eval_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 157s build_dir = os.path.join(cython_extensions_dir, "build") 157s if os.path.exists(build_dir): 157s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 157s except OSError: 157s pydev_log.error_once( 157s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 157s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 157s ) 157s 157s 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s # We must import the cython version if forcing cython 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s USING_CYTHON = True 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s # Use the regular version if not forcing cython 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) # @UnusedImport 157s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s else: 157s # Regular: use fallback if not found and give message to user 157s try: 157s > from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s from _pydevd_bundle import pydevd_cython as mod 157s 157s except ImportError: 157s import struct 157s 157s try: 157s is_python_64bit = struct.calcsize("P") == 8 157s except: 157s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 157s raise ImportError 157s plat = "32" 157s if is_python_64bit: 157s plat = "64" 157s 157s # We also accept things as: 157s # 157s # _pydevd_bundle.pydevd_cython_win32_27_32 157s # _pydevd_bundle.pydevd_cython_win32_34_64 157s # 157s # to have multiple pre-compiled pyds distributed along the IDE 157s # (generated by build_tools/build_binaries_windows.py). 157s 157s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 157s check_name = "_pydevd_bundle.%s" % (mod_name,) 157s > mod = getattr(__import__(check_name), mod_name) 157s ^^^^^^^^^^^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s self = 157s 157s def test_execute(self): 157s """Does executing code in an in-process kernel work?""" 157s km = self.km 157s > km.start_kernel() 157s 157s tests/inprocess/test_kernelmanager.py:60: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 157s self.kernel = InProcessKernel(parent=self, session=self.session) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 157s super().__init__(**traits) 157s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 157s raise e 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 157s preimport('pydevd', [ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 157s import_module(name) 157s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 157s from _pydevd_bundle import pydevd_vars 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 157s from ._pydevd_sys_monitoring import * 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 157s from _pydevd_frame_eval.vendored import bytecode 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import opcode as _opcode 157s from enum import IntFlag 157s from typing import Optional, Union 157s 157s # alias to keep the 'bytecode' variable free 157s from _pydevd_frame_eval.vendored import bytecode as _bytecode 157s 157s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 157s from .utils import PY311, PY312, PY313 157s 157s 157s class CompilerFlags(IntFlag): 157s """Possible values of the co_flags attribute of Code object. 157s 157s Note: We do not rely on inspect values here as some of them are missing and 157s furthermore would be version dependent. 157s 157s """ 157s 157s OPTIMIZED = 0x00001 157s NEWLOCALS = 0x00002 157s VARARGS = 0x00004 157s VARKEYWORDS = 0x00008 157s NESTED = 0x00010 157s GENERATOR = 0x00020 157s NOFREE = 0x00040 157s # New in Python 3.5 157s # Used for coroutines defined using async def ie native coroutine 157s COROUTINE = 0x00080 157s # Used for coroutines defined as a generator and then decorated using 157s # types.coroutine 157s ITERABLE_COROUTINE = 0x00100 157s # New in Python 3.6 157s # Generator defined in an async def function 157s ASYNC_GENERATOR = 0x00200 157s 157s FUTURE_GENERATOR_STOP = 0x800000 157s FUTURE_ANNOTATIONS = 0x1000000 157s 157s 157s UNOPTIMIZED_OPCODES = ( 157s _opcode.opmap["STORE_NAME"], 157s _opcode.opmap["LOAD_NAME"], 157s _opcode.opmap["DELETE_NAME"], 157s ) 157s 157s ASYNC_OPCODES = ( 157s _opcode.opmap["GET_AWAITABLE"], 157s _opcode.opmap["GET_AITER"], 157s _opcode.opmap["GET_ANEXT"], 157s > _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 157s _opcode.opmap["END_ASYNC_FOR"], 157s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 157s ) 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 157s _________________ InProcessKernelManagerTestCase.test_history __________________ 157s 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 157s 157s if IS_PY312_OR_GREATER: 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring_cython import * 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring import * 157s 157s else: 157s try: 157s > from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s > from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s > from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 157s 157s During handling of the above exception, another exception occurred: 157s 157s # Defines which version of the trace_dispatch we'll use. 157s # Should give warning only here if cython is not available but supported. 157s 157s import os 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 157s from _pydev_bundle import pydev_log 157s 157s dirname = os.path.dirname(os.path.dirname(__file__)) 157s USING_CYTHON = False 157s 157s 157s def delete_old_compiled_extensions(): 157s import _pydevd_bundle 157s 157s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 157s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 157s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 157s try: 157s import shutil 157s 157s for file in os.listdir(_pydevd_bundle_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 157s for file in os.listdir(_pydevd_frame_eval_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 157s build_dir = os.path.join(cython_extensions_dir, "build") 157s if os.path.exists(build_dir): 157s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 157s except OSError: 157s pydev_log.error_once( 157s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 157s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 157s ) 157s 157s 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s # We must import the cython version if forcing cython 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s USING_CYTHON = True 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s # Use the regular version if not forcing cython 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) # @UnusedImport 157s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s else: 157s # Regular: use fallback if not found and give message to user 157s try: 157s > from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s from _pydevd_bundle import pydevd_cython as mod 157s 157s except ImportError: 157s import struct 157s 157s try: 157s is_python_64bit = struct.calcsize("P") == 8 157s except: 157s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 157s raise ImportError 157s plat = "32" 157s if is_python_64bit: 157s plat = "64" 157s 157s # We also accept things as: 157s # 157s # _pydevd_bundle.pydevd_cython_win32_27_32 157s # _pydevd_bundle.pydevd_cython_win32_34_64 157s # 157s # to have multiple pre-compiled pyds distributed along the IDE 157s # (generated by build_tools/build_binaries_windows.py). 157s 157s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 157s check_name = "_pydevd_bundle.%s" % (mod_name,) 157s > mod = getattr(__import__(check_name), mod_name) 157s ^^^^^^^^^^^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s self = 157s 157s def test_history(self): 157s """Does requesting history from an in-process kernel work?""" 157s km = self.km 157s > km.start_kernel() 157s 157s tests/inprocess/test_kernelmanager.py:99: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 157s self.kernel = InProcessKernel(parent=self, session=self.session) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 157s super().__init__(**traits) 157s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 157s raise e 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 157s preimport('pydevd', [ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 157s import_module(name) 157s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 157s from _pydevd_bundle import pydevd_vars 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 157s from ._pydevd_sys_monitoring import * 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 157s from _pydevd_frame_eval.vendored import bytecode 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import opcode as _opcode 157s from enum import IntFlag 157s from typing import Optional, Union 157s 157s # alias to keep the 'bytecode' variable free 157s from _pydevd_frame_eval.vendored import bytecode as _bytecode 157s 157s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 157s from .utils import PY311, PY312, PY313 157s 157s 157s class CompilerFlags(IntFlag): 157s """Possible values of the co_flags attribute of Code object. 157s 157s Note: We do not rely on inspect values here as some of them are missing and 157s furthermore would be version dependent. 157s 157s """ 157s 157s OPTIMIZED = 0x00001 157s NEWLOCALS = 0x00002 157s VARARGS = 0x00004 157s VARKEYWORDS = 0x00008 157s NESTED = 0x00010 157s GENERATOR = 0x00020 157s NOFREE = 0x00040 157s # New in Python 3.5 157s # Used for coroutines defined using async def ie native coroutine 157s COROUTINE = 0x00080 157s # Used for coroutines defined as a generator and then decorated using 157s # types.coroutine 157s ITERABLE_COROUTINE = 0x00100 157s # New in Python 3.6 157s # Generator defined in an async def function 157s ASYNC_GENERATOR = 0x00200 157s 157s FUTURE_GENERATOR_STOP = 0x800000 157s FUTURE_ANNOTATIONS = 0x1000000 157s 157s 157s UNOPTIMIZED_OPCODES = ( 157s _opcode.opmap["STORE_NAME"], 157s _opcode.opmap["LOAD_NAME"], 157s _opcode.opmap["DELETE_NAME"], 157s ) 157s 157s ASYNC_OPCODES = ( 157s _opcode.opmap["GET_AWAITABLE"], 157s _opcode.opmap["GET_AITER"], 157s _opcode.opmap["GET_ANEXT"], 157s > _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 157s _opcode.opmap["END_ASYNC_FOR"], 157s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 157s ) 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 157s _________________ InProcessKernelManagerTestCase.test_inspect __________________ 157s 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 157s 157s if IS_PY312_OR_GREATER: 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring_cython import * 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring import * 157s 157s else: 157s try: 157s > from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s > from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s > from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 157s 157s During handling of the above exception, another exception occurred: 157s 157s # Defines which version of the trace_dispatch we'll use. 157s # Should give warning only here if cython is not available but supported. 157s 157s import os 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 157s from _pydev_bundle import pydev_log 157s 157s dirname = os.path.dirname(os.path.dirname(__file__)) 157s USING_CYTHON = False 157s 157s 157s def delete_old_compiled_extensions(): 157s import _pydevd_bundle 157s 157s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 157s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 157s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 157s try: 157s import shutil 157s 157s for file in os.listdir(_pydevd_bundle_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 157s for file in os.listdir(_pydevd_frame_eval_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 157s build_dir = os.path.join(cython_extensions_dir, "build") 157s if os.path.exists(build_dir): 157s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 157s except OSError: 157s pydev_log.error_once( 157s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 157s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 157s ) 157s 157s 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s # We must import the cython version if forcing cython 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s USING_CYTHON = True 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s # Use the regular version if not forcing cython 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) # @UnusedImport 157s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s else: 157s # Regular: use fallback if not found and give message to user 157s try: 157s > from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s from _pydevd_bundle import pydevd_cython as mod 157s 157s except ImportError: 157s import struct 157s 157s try: 157s is_python_64bit = struct.calcsize("P") == 8 157s except: 157s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 157s raise ImportError 157s plat = "32" 157s if is_python_64bit: 157s plat = "64" 157s 157s # We also accept things as: 157s # 157s # _pydevd_bundle.pydevd_cython_win32_27_32 157s # _pydevd_bundle.pydevd_cython_win32_34_64 157s # 157s # to have multiple pre-compiled pyds distributed along the IDE 157s # (generated by build_tools/build_binaries_windows.py). 157s 157s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 157s check_name = "_pydevd_bundle.%s" % (mod_name,) 157s > mod = getattr(__import__(check_name), mod_name) 157s ^^^^^^^^^^^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s self = 157s 157s def test_inspect(self): 157s """Does requesting object information from an in-process kernel work?""" 157s km = self.km 157s > km.start_kernel() 157s 157s tests/inprocess/test_kernelmanager.py:83: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 157s self.kernel = InProcessKernel(parent=self, session=self.session) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 157s super().__init__(**traits) 157s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 157s raise e 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 157s preimport('pydevd', [ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 157s import_module(name) 157s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 157s from _pydevd_bundle import pydevd_vars 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 157s from ._pydevd_sys_monitoring import * 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 157s from _pydevd_frame_eval.vendored import bytecode 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import opcode as _opcode 157s from enum import IntFlag 157s from typing import Optional, Union 157s 157s # alias to keep the 'bytecode' variable free 157s from _pydevd_frame_eval.vendored import bytecode as _bytecode 157s 157s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 157s from .utils import PY311, PY312, PY313 157s 157s 157s class CompilerFlags(IntFlag): 157s """Possible values of the co_flags attribute of Code object. 157s 157s Note: We do not rely on inspect values here as some of them are missing and 157s furthermore would be version dependent. 157s 157s """ 157s 157s OPTIMIZED = 0x00001 157s NEWLOCALS = 0x00002 157s VARARGS = 0x00004 157s VARKEYWORDS = 0x00008 157s NESTED = 0x00010 157s GENERATOR = 0x00020 157s NOFREE = 0x00040 157s # New in Python 3.5 157s # Used for coroutines defined using async def ie native coroutine 157s COROUTINE = 0x00080 157s # Used for coroutines defined as a generator and then decorated using 157s # types.coroutine 157s ITERABLE_COROUTINE = 0x00100 157s # New in Python 3.6 157s # Generator defined in an async def function 157s ASYNC_GENERATOR = 0x00200 157s 157s FUTURE_GENERATOR_STOP = 0x800000 157s FUTURE_ANNOTATIONS = 0x1000000 157s 157s 157s UNOPTIMIZED_OPCODES = ( 157s _opcode.opmap["STORE_NAME"], 157s _opcode.opmap["LOAD_NAME"], 157s _opcode.opmap["DELETE_NAME"], 157s ) 157s 157s ASYNC_OPCODES = ( 157s _opcode.opmap["GET_AWAITABLE"], 157s _opcode.opmap["GET_AITER"], 157s _opcode.opmap["GET_ANEXT"], 157s > _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 157s _opcode.opmap["END_ASYNC_FOR"], 157s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 157s ) 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 157s ________________ InProcessKernelManagerTestCase.test_interface _________________ 157s 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 157s 157s if IS_PY312_OR_GREATER: 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring_cython import * 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring import * 157s 157s else: 157s try: 157s > from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s > from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s > from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 157s 157s During handling of the above exception, another exception occurred: 157s 157s # Defines which version of the trace_dispatch we'll use. 157s # Should give warning only here if cython is not available but supported. 157s 157s import os 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 157s from _pydev_bundle import pydev_log 157s 157s dirname = os.path.dirname(os.path.dirname(__file__)) 157s USING_CYTHON = False 157s 157s 157s def delete_old_compiled_extensions(): 157s import _pydevd_bundle 157s 157s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 157s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 157s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 157s try: 157s import shutil 157s 157s for file in os.listdir(_pydevd_bundle_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 157s for file in os.listdir(_pydevd_frame_eval_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 157s build_dir = os.path.join(cython_extensions_dir, "build") 157s if os.path.exists(build_dir): 157s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 157s except OSError: 157s pydev_log.error_once( 157s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 157s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 157s ) 157s 157s 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s # We must import the cython version if forcing cython 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s USING_CYTHON = True 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s # Use the regular version if not forcing cython 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) # @UnusedImport 157s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s else: 157s # Regular: use fallback if not found and give message to user 157s try: 157s > from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s from _pydevd_bundle import pydevd_cython as mod 157s 157s except ImportError: 157s import struct 157s 157s try: 157s is_python_64bit = struct.calcsize("P") == 8 157s except: 157s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 157s raise ImportError 157s plat = "32" 157s if is_python_64bit: 157s plat = "64" 157s 157s # We also accept things as: 157s # 157s # _pydevd_bundle.pydevd_cython_win32_27_32 157s # _pydevd_bundle.pydevd_cython_win32_34_64 157s # 157s # to have multiple pre-compiled pyds distributed along the IDE 157s # (generated by build_tools/build_binaries_windows.py). 157s 157s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 157s check_name = "_pydevd_bundle.%s" % (mod_name,) 157s > mod = getattr(__import__(check_name), mod_name) 157s ^^^^^^^^^^^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s self = 157s 157s @flaky 157s def test_interface(self): 157s """Does the in-process kernel manager implement the basic KM interface?""" 157s km = self.km 157s assert not km.has_kernel 157s 157s > km.start_kernel() 157s 157s tests/inprocess/test_kernelmanager.py:30: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/manager.py:48: in start_kernel 157s self.kernel = InProcessKernel(parent=self, session=self.session) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/ipykernel/inprocess/ipkernel.py:72: in __init__ 157s super().__init__(**traits) 157s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 157s raise e 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 157s preimport('pydevd', [ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 157s import_module(name) 157s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 157s from _pydevd_bundle import pydevd_vars 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 157s from ._pydevd_sys_monitoring import * 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 157s from _pydevd_frame_eval.vendored import bytecode 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import opcode as _opcode 157s from enum import IntFlag 157s from typing import Optional, Union 157s 157s # alias to keep the 'bytecode' variable free 157s from _pydevd_frame_eval.vendored import bytecode as _bytecode 157s 157s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 157s from .utils import PY311, PY312, PY313 157s 157s 157s class CompilerFlags(IntFlag): 157s """Possible values of the co_flags attribute of Code object. 157s 157s Note: We do not rely on inspect values here as some of them are missing and 157s furthermore would be version dependent. 157s 157s """ 157s 157s OPTIMIZED = 0x00001 157s NEWLOCALS = 0x00002 157s VARARGS = 0x00004 157s VARKEYWORDS = 0x00008 157s NESTED = 0x00010 157s GENERATOR = 0x00020 157s NOFREE = 0x00040 157s # New in Python 3.5 157s # Used for coroutines defined using async def ie native coroutine 157s COROUTINE = 0x00080 157s # Used for coroutines defined as a generator and then decorated using 157s # types.coroutine 157s ITERABLE_COROUTINE = 0x00100 157s # New in Python 3.6 157s # Generator defined in an async def function 157s ASYNC_GENERATOR = 0x00200 157s 157s FUTURE_GENERATOR_STOP = 0x800000 157s FUTURE_ANNOTATIONS = 0x1000000 157s 157s 157s UNOPTIMIZED_OPCODES = ( 157s _opcode.opmap["STORE_NAME"], 157s _opcode.opmap["LOAD_NAME"], 157s _opcode.opmap["DELETE_NAME"], 157s ) 157s 157s ASYNC_OPCODES = ( 157s _opcode.opmap["GET_AWAITABLE"], 157s _opcode.opmap["GET_AITER"], 157s _opcode.opmap["GET_ANEXT"], 157s > _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 157s _opcode.opmap["END_ASYNC_FOR"], 157s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 157s ) 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 157s ___________________________ test_embed_kernel_basic ____________________________ 157s 157s @flaky(max_runs=3) 157s def test_embed_kernel_basic(): 157s """IPython.embed_kernel() is basically functional""" 157s cmd = "\n".join( 157s [ 157s "from IPython import embed_kernel", 157s "def go():", 157s " a=5", 157s ' b="hi there"', 157s " embed_kernel()", 157s "go()", 157s "", 157s ] 157s ) 157s 157s > with setup_kernel(cmd) as client: 157s ^^^^^^^^^^^^^^^^^ 157s 157s tests/test_embed_kernel.py:109: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3.14/contextlib.py:141: in __enter__ 157s return next(self.gen) 157s ^^^^^^^^^^^^^^ 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s cmd = 'from IPython import embed_kernel\ndef go():\n a=5\n b="hi there"\n embed_kernel()\ngo()\n' 157s 157s @contextmanager 157s def setup_kernel(cmd): 157s """start an embedded kernel in a subprocess, and wait for it to be ready 157s 157s Returns 157s ------- 157s kernel_manager: connected KernelManager instance 157s """ 157s 157s def connection_file_ready(connection_file): 157s """Check if connection_file is a readable json file.""" 157s if not os.path.exists(connection_file): 157s return False 157s try: 157s with open(connection_file) as f: 157s json.load(f) 157s return True 157s except ValueError: 157s return False 157s 157s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 157s try: 157s connection_file = os.path.join( 157s paths.jupyter_runtime_dir(), 157s "kernel-%i.json" % kernel.pid, 157s ) 157s # wait for connection file to exist, timeout after 5s 157s tic = time.time() 157s while ( 157s not connection_file_ready(connection_file) 157s and kernel.poll() is None 157s and time.time() < tic + SETUP_TIMEOUT 157s ): 157s time.sleep(0.1) 157s 157s # Wait 100ms for the writing to finish 157s time.sleep(0.1) 157s 157s if kernel.poll() is not None: 157s o, e = kernel.communicate() 157s > raise OSError("Kernel failed to start:\n%s" % e) 157s E OSError: Kernel failed to start: 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s E from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s E from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s E from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s E from _pydevd_bundle.pydevd_cython_wrapper import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s E mod = getattr(__import__(check_name), mod_name) 157s E ~~~~~~~~~~^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "", line 6, in 157s E go() 157s E ~~^^ 157s E File "", line 5, in go 157s E embed_kernel() 157s E ~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s E real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s E app.initialize([]) 157s E ~~~~~~~~~~~~~~^^^^ 157s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s E return method(app, *args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s E self.init_kernel() 157s E ~~~~~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s E kernel = kernel_factory( 157s E parent=self, 157s E ...<11 lines>... 157s E user_ns=self.user_ns, 157s E ) 157s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s E inst = cls(*args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s E from .debugger import Debugger, _is_debugpy_available 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s E raise e 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s E from debugpy.server import api # noqa: F401 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s E import debugpy._vendored.force_pydevd # noqa 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s E preimport('pydevd', [ 157s E ~~~~~~~~~^^^^^^^^^^^^ 157s E '_pydev_bundle', 157s E ^^^^^^^^^^^^^^^^ 157s E ...<5 lines>... 157s E 'pydevd', 157s E ^^^^^^^^^ 157s E ]) 157s E ^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s E import_module(name) 157s E ~~~~~~~~~~~~~^^^^^^ 157s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s E return _bootstrap._gcd_import(name[level:], package, level) 157s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s E from _pydevd_bundle import pydevd_vars 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s E from ._pydevd_sys_monitoring import * 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E ...<4 lines>... 157s E ) # @UnusedImport 157s E ^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s E _opcode.opmap["BEFORE_ASYNC_WITH"], 157s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s tests/test_embed_kernel.py:69: OSError 157s _________________________ test_embed_kernel_namespace __________________________ 157s 157s @flaky(max_runs=3) 157s def test_embed_kernel_namespace(): 157s """IPython.embed_kernel() inherits calling namespace""" 157s cmd = "\n".join( 157s [ 157s "from IPython import embed_kernel", 157s "def go():", 157s " a=5", 157s ' b="hi there"', 157s " embed_kernel()", 157s "go()", 157s "", 157s ] 157s ) 157s 157s > with setup_kernel(cmd) as client: 157s ^^^^^^^^^^^^^^^^^ 157s 157s tests/test_embed_kernel.py:145: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3.14/contextlib.py:141: in __enter__ 157s return next(self.gen) 157s ^^^^^^^^^^^^^^ 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s cmd = 'from IPython import embed_kernel\ndef go():\n a=5\n b="hi there"\n embed_kernel()\ngo()\n' 157s 157s @contextmanager 157s def setup_kernel(cmd): 157s """start an embedded kernel in a subprocess, and wait for it to be ready 157s 157s Returns 157s ------- 157s kernel_manager: connected KernelManager instance 157s """ 157s 157s def connection_file_ready(connection_file): 157s """Check if connection_file is a readable json file.""" 157s if not os.path.exists(connection_file): 157s return False 157s try: 157s with open(connection_file) as f: 157s json.load(f) 157s return True 157s except ValueError: 157s return False 157s 157s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 157s try: 157s connection_file = os.path.join( 157s paths.jupyter_runtime_dir(), 157s "kernel-%i.json" % kernel.pid, 157s ) 157s # wait for connection file to exist, timeout after 5s 157s tic = time.time() 157s while ( 157s not connection_file_ready(connection_file) 157s and kernel.poll() is None 157s and time.time() < tic + SETUP_TIMEOUT 157s ): 157s time.sleep(0.1) 157s 157s # Wait 100ms for the writing to finish 157s time.sleep(0.1) 157s 157s if kernel.poll() is not None: 157s o, e = kernel.communicate() 157s > raise OSError("Kernel failed to start:\n%s" % e) 157s E OSError: Kernel failed to start: 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s E from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s E from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s E from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s E from _pydevd_bundle.pydevd_cython_wrapper import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s E mod = getattr(__import__(check_name), mod_name) 157s E ~~~~~~~~~~^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "", line 6, in 157s E go() 157s E ~~^^ 157s E File "", line 5, in go 157s E embed_kernel() 157s E ~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s E real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s E app.initialize([]) 157s E ~~~~~~~~~~~~~~^^^^ 157s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s E return method(app, *args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s E self.init_kernel() 157s E ~~~~~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s E kernel = kernel_factory( 157s E parent=self, 157s E ...<11 lines>... 157s E user_ns=self.user_ns, 157s E ) 157s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s E inst = cls(*args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s E from .debugger import Debugger, _is_debugpy_available 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s E raise e 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s E from debugpy.server import api # noqa: F401 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s E import debugpy._vendored.force_pydevd # noqa 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s E preimport('pydevd', [ 157s E ~~~~~~~~~^^^^^^^^^^^^ 157s E '_pydev_bundle', 157s E ^^^^^^^^^^^^^^^^ 157s E ...<5 lines>... 157s E 'pydevd', 157s E ^^^^^^^^^ 157s E ]) 157s E ^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s E import_module(name) 157s E ~~~~~~~~~~~~~^^^^^^ 157s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s E return _bootstrap._gcd_import(name[level:], package, level) 157s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s E from _pydevd_bundle import pydevd_vars 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s E from ._pydevd_sys_monitoring import * 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E ...<4 lines>... 157s E ) # @UnusedImport 157s E ^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s E _opcode.opmap["BEFORE_ASYNC_WITH"], 157s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s tests/test_embed_kernel.py:69: OSError 157s _________________________ test_embed_kernel_reentrant __________________________ 157s 157s @flaky(max_runs=3) 157s def test_embed_kernel_reentrant(): 157s """IPython.embed_kernel() can be called multiple times""" 157s cmd = "\n".join( 157s [ 157s "from IPython import embed_kernel", 157s "count = 0", 157s "def go():", 157s " global count", 157s " embed_kernel()", 157s " count = count + 1", 157s "", 157s "while True: go()", 157s "", 157s ] 157s ) 157s 157s > with setup_kernel(cmd) as client: 157s ^^^^^^^^^^^^^^^^^ 157s 157s tests/test_embed_kernel.py:186: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3.14/contextlib.py:141: in __enter__ 157s return next(self.gen) 157s ^^^^^^^^^^^^^^ 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s 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' 157s 157s @contextmanager 157s def setup_kernel(cmd): 157s """start an embedded kernel in a subprocess, and wait for it to be ready 157s 157s Returns 157s ------- 157s kernel_manager: connected KernelManager instance 157s """ 157s 157s def connection_file_ready(connection_file): 157s """Check if connection_file is a readable json file.""" 157s if not os.path.exists(connection_file): 157s return False 157s try: 157s with open(connection_file) as f: 157s json.load(f) 157s return True 157s except ValueError: 157s return False 157s 157s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 157s try: 157s connection_file = os.path.join( 157s paths.jupyter_runtime_dir(), 157s "kernel-%i.json" % kernel.pid, 157s ) 157s # wait for connection file to exist, timeout after 5s 157s tic = time.time() 157s while ( 157s not connection_file_ready(connection_file) 157s and kernel.poll() is None 157s and time.time() < tic + SETUP_TIMEOUT 157s ): 157s time.sleep(0.1) 157s 157s # Wait 100ms for the writing to finish 157s time.sleep(0.1) 157s 157s if kernel.poll() is not None: 157s o, e = kernel.communicate() 157s > raise OSError("Kernel failed to start:\n%s" % e) 157s E OSError: Kernel failed to start: 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s E from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s E from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s E from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s E from _pydevd_bundle.pydevd_cython_wrapper import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s E mod = getattr(__import__(check_name), mod_name) 157s E ~~~~~~~~~~^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "", line 8, in 157s E while True: go() 157s E ~~^^ 157s E File "", line 5, in go 157s E embed_kernel() 157s E ~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s E real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s E ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s E app.initialize([]) 157s E ~~~~~~~~~~~~~~^^^^ 157s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s E return method(app, *args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s E self.init_kernel() 157s E ~~~~~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s E kernel = kernel_factory( 157s E parent=self, 157s E ...<11 lines>... 157s E user_ns=self.user_ns, 157s E ) 157s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s E inst = cls(*args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s E from .debugger import Debugger, _is_debugpy_available 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s E raise e 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s E from debugpy.server import api # noqa: F401 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s E import debugpy._vendored.force_pydevd # noqa 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s E preimport('pydevd', [ 157s E ~~~~~~~~~^^^^^^^^^^^^ 157s E '_pydev_bundle', 157s E ^^^^^^^^^^^^^^^^ 157s E ...<5 lines>... 157s E 'pydevd', 157s E ^^^^^^^^^ 157s E ]) 157s E ^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s E import_module(name) 157s E ~~~~~~~~~~~~~^^^^^^ 157s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s E return _bootstrap._gcd_import(name[level:], package, level) 157s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s E from _pydevd_bundle import pydevd_vars 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s E from ._pydevd_sys_monitoring import * 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E ...<4 lines>... 157s E ) # @UnusedImport 157s E ^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s E _opcode.opmap["BEFORE_ASYNC_WITH"], 157s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s tests/test_embed_kernel.py:69: OSError 157s ____________________________ test_embed_kernel_func ____________________________ 157s 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES, IS_PY312_OR_GREATER 157s 157s if IS_PY312_OR_GREATER: 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring_cython import * 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s from ._pydevd_sys_monitoring import * 157s 157s else: 157s try: 157s > from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:12: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s > from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:5: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s > from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:8: ImportError 157s 157s During handling of the above exception, another exception occurred: 157s 157s # Defines which version of the trace_dispatch we'll use. 157s # Should give warning only here if cython is not available but supported. 157s 157s import os 157s from _pydevd_bundle.pydevd_constants import USE_CYTHON_FLAG, ENV_TRUE_LOWER_VALUES, ENV_FALSE_LOWER_VALUES 157s from _pydev_bundle import pydev_log 157s 157s dirname = os.path.dirname(os.path.dirname(__file__)) 157s USING_CYTHON = False 157s 157s 157s def delete_old_compiled_extensions(): 157s import _pydevd_bundle 157s 157s cython_extensions_dir = os.path.dirname(os.path.dirname(_pydevd_bundle.__file__)) 157s _pydevd_bundle_ext_dir = os.path.dirname(_pydevd_bundle.__file__) 157s _pydevd_frame_eval_ext_dir = os.path.join(cython_extensions_dir, "_pydevd_frame_eval_ext") 157s try: 157s import shutil 157s 157s for file in os.listdir(_pydevd_bundle_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_bundle_ext_dir, file)) 157s for file in os.listdir(_pydevd_frame_eval_ext_dir): 157s if file.startswith("pydevd") and file.endswith(".so"): 157s os.remove(os.path.join(_pydevd_frame_eval_ext_dir, file)) 157s build_dir = os.path.join(cython_extensions_dir, "build") 157s if os.path.exists(build_dir): 157s shutil.rmtree(os.path.join(cython_extensions_dir, "build")) 157s except OSError: 157s pydev_log.error_once( 157s "warning: failed to delete old cython speedups. Please delete all *.so files from the directories " 157s '"%s" and "%s"' % (_pydevd_bundle_ext_dir, _pydevd_frame_eval_ext_dir) 157s ) 157s 157s 157s if USE_CYTHON_FLAG in ENV_TRUE_LOWER_VALUES: 157s # We must import the cython version if forcing cython 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s from _pydevd_bundle.pydevd_cython_wrapper import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s USING_CYTHON = True 157s 157s elif USE_CYTHON_FLAG in ENV_FALSE_LOWER_VALUES: 157s # Use the regular version if not forcing cython 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) # @UnusedImport 157s from .pydevd_frame import should_stop_on_exception, handle_exception, is_unhandled_exception 157s 157s else: 157s # Regular: use fallback if not found and give message to user 157s try: 157s > from _pydevd_bundle.pydevd_cython_wrapper import ( 157s trace_dispatch, 157s global_cache_skips, 157s global_cache_frame_skips, 157s fix_top_level_trace_and_get_trace_func, 157s ) 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:62: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import sys 157s 157s try: 157s try: 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s 157s except ImportError: 157s from _pydevd_bundle import pydevd_cython as mod 157s 157s except ImportError: 157s import struct 157s 157s try: 157s is_python_64bit = struct.calcsize("P") == 8 157s except: 157s # In Jython this call fails, but this is Ok, we don't support Jython for speedups anyways. 157s raise ImportError 157s plat = "32" 157s if is_python_64bit: 157s plat = "64" 157s 157s # We also accept things as: 157s # 157s # _pydevd_bundle.pydevd_cython_win32_27_32 157s # _pydevd_bundle.pydevd_cython_win32_34_64 157s # 157s # to have multiple pre-compiled pyds distributed along the IDE 157s # (generated by build_tools/build_binaries_windows.py). 157s 157s mod_name = "pydevd_cython_%s_%s%s_%s" % (sys.platform, sys.version_info[0], sys.version_info[1], plat) 157s check_name = "_pydevd_bundle.%s" % (mod_name,) 157s > mod = getattr(__import__(check_name), mod_name) 157s ^^^^^^^^^^^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py:32: ModuleNotFoundError 157s 157s During handling of the above exception, another exception occurred: 157s 157s def test_embed_kernel_func(): 157s from types import ModuleType 157s 157s module = ModuleType("test") 157s 157s def trigger_stop(): 157s time.sleep(1) 157s app = IPKernelApp.instance() 157s app.io_loop.add_callback(app.io_loop.stop) 157s IPKernelApp.clear_instance() 157s 157s thread = threading.Thread(target=trigger_stop) 157s thread.start() 157s 157s > embed_kernel(module, outstream_class=None) 157s 157s tests/test_embed_kernel.py:215: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3/dist-packages/ipykernel/embed.py:38: in embed_kernel 157s app.initialize([]) 157s /usr/lib/python3/dist-packages/traitlets/config/application.py:118: in inner 157s return method(app, *args, **kwargs) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/ipykernel/kernelapp.py:707: in initialize 157s self.init_kernel() 157s /usr/lib/python3/dist-packages/ipykernel/kernelapp.py:555: in init_kernel 157s kernel = kernel_factory( 157s /usr/lib/python3/dist-packages/traitlets/config/configurable.py:583: in instance 157s inst = cls(*args, **kwargs) 157s ^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/ipykernel/ipkernel.py:117: in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:41: in 157s raise e 157s /usr/lib/python3/dist-packages/ipykernel/debugger.py:24: in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/server/__init__.py:7: in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py:44: in 157s preimport('pydevd', [ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py:126: in preimport 157s import_module(name) 157s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py:51: in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py:6: in 157s from _pydevd_bundle import pydevd_vars 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py:11: in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py:8: in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py:14: in 157s from ._pydevd_sys_monitoring import * 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py:31: in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py:84: in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py:18: in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py:22: in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py:10: in 157s from _pydevd_frame_eval.vendored import bytecode 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py:19: in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py:20: in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s import opcode as _opcode 157s from enum import IntFlag 157s from typing import Optional, Union 157s 157s # alias to keep the 'bytecode' variable free 157s from _pydevd_frame_eval.vendored import bytecode as _bytecode 157s 157s from .instr import DUAL_ARG_OPCODES, CellVar, FreeVar 157s from .utils import PY311, PY312, PY313 157s 157s 157s class CompilerFlags(IntFlag): 157s """Possible values of the co_flags attribute of Code object. 157s 157s Note: We do not rely on inspect values here as some of them are missing and 157s furthermore would be version dependent. 157s 157s """ 157s 157s OPTIMIZED = 0x00001 157s NEWLOCALS = 0x00002 157s VARARGS = 0x00004 157s VARKEYWORDS = 0x00008 157s NESTED = 0x00010 157s GENERATOR = 0x00020 157s NOFREE = 0x00040 157s # New in Python 3.5 157s # Used for coroutines defined using async def ie native coroutine 157s COROUTINE = 0x00080 157s # Used for coroutines defined as a generator and then decorated using 157s # types.coroutine 157s ITERABLE_COROUTINE = 0x00100 157s # New in Python 3.6 157s # Generator defined in an async def function 157s ASYNC_GENERATOR = 0x00200 157s 157s FUTURE_GENERATOR_STOP = 0x800000 157s FUTURE_ANNOTATIONS = 0x1000000 157s 157s 157s UNOPTIMIZED_OPCODES = ( 157s _opcode.opmap["STORE_NAME"], 157s _opcode.opmap["LOAD_NAME"], 157s _opcode.opmap["DELETE_NAME"], 157s ) 157s 157s ASYNC_OPCODES = ( 157s _opcode.opmap["GET_AWAITABLE"], 157s _opcode.opmap["GET_AITER"], 157s _opcode.opmap["GET_ANEXT"], 157s > _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s *((_opcode.opmap["SETUP_ASYNC_WITH"],) if not PY311 else ()), # Removed in 3.11+ 157s _opcode.opmap["END_ASYNC_FOR"], 157s *((_opcode.opmap["ASYNC_GEN_WRAP"],) if PY311 and not PY312 else ()), # New in 3.11 157s ) 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s /usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py:51: KeyError 157s ______________________________ test_event_pipe_gc ______________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _______________________ test_direct_kernel_info_request ________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _________________________ test_direct_execute_request __________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _____________________ test_direct_execute_request_aborting _____________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ______________________ test_direct_execute_request_error _______________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ____________________________ test_complete_request _____________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _____________________________ test_inspect_request _____________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _____________________________ test_history_request _____________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ____________________________ test_comm_info_request ____________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ________________________ test_direct_interrupt_request _________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _________________________ test_direct_shutdown_request _________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ___________________________ test_is_complete_request ___________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s __________________________ test_direct_debug_request ___________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ___________________________ test_deprecated_features ___________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _____________________________ test_process_control _____________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _____________________________ test_dispatch_shell ______________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ____________________________ test_do_one_iteration _____________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ___________________________ test_publish_debug_event ___________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _____________________________ test_connect_request _____________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s _________________________ test_send_interrupt_children _________________________ 157s async def functions are not natively supported. 157s You need to install a suitable plugin for your async framework, for example: 157s - anyio 157s - pytest-asyncio 157s - pytest-tornasync 157s - pytest-trio 157s - pytest-twisted 157s ___________________________ test_install_kernelspec ____________________________ 157s 157s def test_install_kernelspec(): 157s path = tempfile.mkdtemp() 157s try: 157s > InstallIPythonKernelSpecApp.launch_instance(argv=["--prefix", path]) 157s 157s tests/test_kernelspec.py:83: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3/dist-packages/traitlets/config/application.py:1073: in launch_instance 157s app = cls.instance(**kwargs) 157s ^^^^^^^^^^^^^^^^^^^^^^ 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s cls = , args = () 157s kwargs = {} 157s 157s @classmethod 157s def instance(cls: type[CT], *args: t.Any, **kwargs: t.Any) -> CT: 157s """Returns a global instance of this class. 157s 157s This method create a new instance if none have previously been created 157s and returns a previously created instance is one already exists. 157s 157s The arguments and keyword arguments passed to this method are passed 157s on to the :meth:`__init__` method of the class upon instantiation. 157s 157s Examples 157s -------- 157s Create a singleton class using instance, and retrieve it:: 157s 157s >>> from traitlets.config.configurable import SingletonConfigurable 157s >>> class Foo(SingletonConfigurable): pass 157s >>> foo = Foo.instance() 157s >>> foo == Foo.instance() 157s True 157s 157s Create a subclass that is retrieved using the base class instance:: 157s 157s >>> class Bar(SingletonConfigurable): pass 157s >>> class Bam(Bar): pass 157s >>> bam = Bam.instance() 157s >>> bam == Bar.instance() 157s True 157s """ 157s # Create and save the instance 157s if cls._instance is None: 157s inst = cls(*args, **kwargs) 157s # Now make sure that the instance will also be returned by 157s # parent classes' _instance attribute. 157s for subclass in cls._walk_mro(): 157s subclass._instance = inst 157s 157s if isinstance(cls._instance, cls): 157s return cls._instance 157s else: 157s > raise MultipleInstanceError( 157s f"An incompatible sibling of '{cls.__name__}' is already instantiated" 157s f" as singleton: {type(cls._instance).__name__}" 157s ) 157s E traitlets.config.configurable.MultipleInstanceError: An incompatible sibling of 'InstallIPythonKernelSpecApp' is already instantiated as singleton: IPKernelApp 157s 157s /usr/lib/python3/dist-packages/traitlets/config/configurable.py:592: MultipleInstanceError 157s _______________________ test_ipython_start_kernel_userns _______________________ 157s 157s @flaky(max_runs=3) 157s def test_ipython_start_kernel_userns(): 157s cmd = dedent( 157s """ 157s from ipykernel.kernelapp import launch_new_instance 157s ns = {"custom": 123} 157s launch_new_instance(user_ns=ns) 157s """ 157s ) 157s 157s > with setup_kernel(cmd) as client: 157s ^^^^^^^^^^^^^^^^^ 157s 157s tests/test_start_kernel.py:25: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3.14/contextlib.py:141: in __enter__ 157s return next(self.gen) 157s ^^^^^^^^^^^^^^ 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s cmd = '\nfrom ipykernel.kernelapp import launch_new_instance\nns = {"custom": 123}\nlaunch_new_instance(user_ns=ns)\n' 157s 157s @contextmanager 157s def setup_kernel(cmd): 157s """start an embedded kernel in a subprocess, and wait for it to be ready 157s 157s Returns 157s ------- 157s kernel_manager: connected KernelManager instance 157s """ 157s 157s def connection_file_ready(connection_file): 157s """Check if connection_file is a readable json file.""" 157s if not os.path.exists(connection_file): 157s return False 157s try: 157s with open(connection_file) as f: 157s json.load(f) 157s return True 157s except ValueError: 157s return False 157s 157s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 157s try: 157s connection_file = os.path.join( 157s paths.jupyter_runtime_dir(), 157s "kernel-%i.json" % kernel.pid, 157s ) 157s # wait for connection file to exist, timeout after 5s 157s tic = time.time() 157s while ( 157s not connection_file_ready(connection_file) 157s and kernel.poll() is None 157s and time.time() < tic + SETUP_TIMEOUT 157s ): 157s time.sleep(0.1) 157s 157s # Wait 100ms for the writing to finish 157s time.sleep(0.1) 157s 157s if kernel.poll() is not None: 157s o, e = kernel.communicate() 157s > raise OSError("Kernel failed to start:\n%s" % e) 157s E OSError: Kernel failed to start: 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s E from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s E from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s E from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s E from _pydevd_bundle.pydevd_cython_wrapper import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s E mod = getattr(__import__(check_name), mod_name) 157s E ~~~~~~~~~~^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "", line 4, in 157s E launch_new_instance(user_ns=ns) 157s E ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 157s E app.initialize(argv) 157s E ~~~~~~~~~~~~~~^^^^^^ 157s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s E return method(app, *args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s E self.init_kernel() 157s E ~~~~~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s E kernel = kernel_factory( 157s E parent=self, 157s E ...<11 lines>... 157s E user_ns=self.user_ns, 157s E ) 157s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s E inst = cls(*args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s E from .debugger import Debugger, _is_debugpy_available 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s E raise e 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s E from debugpy.server import api # noqa: F401 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s E import debugpy._vendored.force_pydevd # noqa 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s E preimport('pydevd', [ 157s E ~~~~~~~~~^^^^^^^^^^^^ 157s E '_pydev_bundle', 157s E ^^^^^^^^^^^^^^^^ 157s E ...<5 lines>... 157s E 'pydevd', 157s E ^^^^^^^^^ 157s E ]) 157s E ^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s E import_module(name) 157s E ~~~~~~~~~~~~~^^^^^^ 157s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s E return _bootstrap._gcd_import(name[level:], package, level) 157s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s E from _pydevd_bundle import pydevd_vars 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s E from ._pydevd_sys_monitoring import * 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E ...<4 lines>... 157s E ) # @UnusedImport 157s E ^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s E _opcode.opmap["BEFORE_ASYNC_WITH"], 157s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s tests/test_embed_kernel.py:69: OSError 157s _____________________ test_ipython_start_kernel_no_userns ______________________ 157s 157s @flaky(max_runs=3) 157s def test_ipython_start_kernel_no_userns(): 157s # Issue #4188 - user_ns should be passed to shell as None, not {} 157s cmd = dedent( 157s """ 157s from ipykernel.kernelapp import launch_new_instance 157s launch_new_instance() 157s """ 157s ) 157s 157s > with setup_kernel(cmd) as client: 157s ^^^^^^^^^^^^^^^^^ 157s 157s tests/test_start_kernel.py:56: 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s /usr/lib/python3.14/contextlib.py:141: in __enter__ 157s return next(self.gen) 157s ^^^^^^^^^^^^^^ 157s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 157s 157s cmd = '\nfrom ipykernel.kernelapp import launch_new_instance\nlaunch_new_instance()\n' 157s 157s @contextmanager 157s def setup_kernel(cmd): 157s """start an embedded kernel in a subprocess, and wait for it to be ready 157s 157s Returns 157s ------- 157s kernel_manager: connected KernelManager instance 157s """ 157s 157s def connection_file_ready(connection_file): 157s """Check if connection_file is a readable json file.""" 157s if not os.path.exists(connection_file): 157s return False 157s try: 157s with open(connection_file) as f: 157s json.load(f) 157s return True 157s except ValueError: 157s return False 157s 157s kernel = Popen([sys.executable, "-c", cmd], stdout=PIPE, stderr=PIPE, encoding="utf-8") 157s try: 157s connection_file = os.path.join( 157s paths.jupyter_runtime_dir(), 157s "kernel-%i.json" % kernel.pid, 157s ) 157s # wait for connection file to exist, timeout after 5s 157s tic = time.time() 157s while ( 157s not connection_file_ready(connection_file) 157s and kernel.poll() is None 157s and time.time() < tic + SETUP_TIMEOUT 157s ): 157s time.sleep(0.1) 157s 157s # Wait 100ms for the writing to finish 157s time.sleep(0.1) 157s 157s if kernel.poll() is not None: 157s o, e = kernel.communicate() 157s > raise OSError("Kernel failed to start:\n%s" % e) 157s E OSError: Kernel failed to start: 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s E from ._pydevd_sys_monitoring_cython import * 157s E ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s E from _pydevd_bundle_ext import pydevd_cython as mod 157s E ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s E from _pydevd_bundle import pydevd_cython as mod 157s E ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s E from _pydevd_bundle.pydevd_cython_wrapper import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s E mod = getattr(__import__(check_name), mod_name) 157s E ~~~~~~~~~~^^^^^^^^^^^^ 157s E ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s E 157s E During handling of the above exception, another exception occurred: 157s E 157s E Traceback (most recent call last): 157s E File "", line 3, in 157s E launch_new_instance() 157s E ~~~~~~~~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 157s E app.initialize(argv) 157s E ~~~~~~~~~~~~~~^^^^^^ 157s E File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s E return method(app, *args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s E self.init_kernel() 157s E ~~~~~~~~~~~~~~~~^^ 157s E File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s E kernel = kernel_factory( 157s E parent=self, 157s E ...<11 lines>... 157s E user_ns=self.user_ns, 157s E ) 157s E File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s E inst = cls(*args, **kwargs) 157s E File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s E from .debugger import Debugger, _is_debugpy_available 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s E raise e 157s E File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s E from debugpy.server import api # noqa: F401 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s E import debugpy._vendored.force_pydevd # noqa 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s E preimport('pydevd', [ 157s E ~~~~~~~~~^^^^^^^^^^^^ 157s E '_pydev_bundle', 157s E ^^^^^^^^^^^^^^^^ 157s E ...<5 lines>... 157s E 'pydevd', 157s E ^^^^^^^^^ 157s E ]) 157s E ^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s E import_module(name) 157s E ~~~~~~~~~~~~~^^^^^^ 157s E File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s E return _bootstrap._gcd_import(name[level:], package, level) 157s E ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s E from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s E from _pydevd_bundle import pydevd_vars 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s E from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s E from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s E from ._pydevd_sys_monitoring import * 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s E from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s E from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s E ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s E ...<4 lines>... 157s E ) # @UnusedImport 157s E ^ 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s E from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s E from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s E from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s E from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s E ...<4 lines>... 157s E ) 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s E from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s E File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s E _opcode.opmap["BEFORE_ASYNC_WITH"], 157s E ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s E KeyError: 'BEFORE_ASYNC_WITH' 157s 157s tests/test_embed_kernel.py:69: OSError 157s =============================== warnings summary =============================== 157s ../../../usr/lib/python3/dist-packages/jupyter_client/connect.py:22 157s /usr/lib/python3/dist-packages/jupyter_client/connect.py:22: DeprecationWarning: Jupyter is migrating its paths to use standard platformdirs 157s given by the platformdirs library. To remove this warning and 157s see the appropriate new directories, set the environment variable 157s `JUPYTER_PLATFORM_DIRS=1` and then run `jupyter --paths`. 157s The use of platformdirs will be the default in `jupyter_core` v6 157s from jupyter_core.paths import jupyter_data_dir, jupyter_runtime_dir, secure_write 157s 157s tests/test_eventloop.py::test_asyncio_interrupt 157s /usr/lib/python3/dist-packages/_pytest/threadexception.py:58: PytestUnhandledThreadExceptionWarning: Exception in thread Thread-14 (trigger_stop) 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3.14/threading.py", line 1081, in _bootstrap_inner 157s self._context.run(self.run) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^ 157s File "/usr/lib/python3.14/threading.py", line 1023, in run 157s self._target(*self._args, **self._kwargs) 157s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/tmp/autopkgtest.zN4IKP/autopkgtest_tmp/tests/test_embed_kernel.py", line 209, in trigger_stop 157s app.io_loop.add_callback(app.io_loop.stop) 157s ^^^^^^^^^^^ 157s AttributeError: 'IPKernelApp' object has no attribute 'io_loop'. Did you mean: 'trio_loop'? 157s 157s Enable tracemalloc to get traceback where the object was allocated. 157s See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info. 157s warnings.warn(pytest.PytestUnhandledThreadExceptionWarning(msg)) 157s 157s tests/test_zmq_shell.py::test_magics 157s tests/test_zmq_shell.py::test_zmq_interactive_shell 157s /usr/lib/python3.14/pty.py:66: DeprecationWarning: This process (pid=2715) is multi-threaded, use of forkpty() may lead to deadlocks in the child. 157s pid, fd = os.forkpty() 157s 157s -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 157s ===Flaky Test Report=== 157s 157s test_interface failed (1 runs remaining out of 2). 157s 157s 'BEFORE_ASYNC_WITH' 157s [, , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_interface failed; it passed 0 out of the required 1 times. 157s 157s 'BEFORE_ASYNC_WITH' 157s [, , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_basic failed (2 runs remaining out of 3). 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 6, in 157s go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_basic failed (1 runs remaining out of 3). 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 6, in 157s go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_basic failed; it passed 0 out of the required 1 times. 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 6, in 157s go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_namespace failed (2 runs remaining out of 3). 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 6, in 157s go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_namespace failed (1 runs remaining out of 3). 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 6, in 157s go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_namespace failed; it passed 0 out of the required 1 times. 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 6, in 157s go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_reentrant failed (2 runs remaining out of 3). 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 8, in 157s while True: go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_reentrant failed (1 runs remaining out of 3). 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 8, in 157s while True: go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_embed_kernel_reentrant failed; it passed 0 out of the required 1 times. 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 8, in 157s while True: go() 157s ~~^^ 157s File "", line 5, in go 157s embed_kernel() 157s ~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/IPython/__init__.py", line 102, in embed_kernel 157s real_embed_kernel(module=module, local_ns=local_ns, **kwargs) 157s ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/embed.py", line 38, in embed_kernel 157s app.initialize([]) 157s ~~~~~~~~~~~~~~^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_subprocess_print passed 1 out of the required 1 times. Success! 157s test_subprocess_noprint passed 1 out of the required 1 times. Success! 157s test_subprocess_error passed 1 out of the required 1 times. Success! 157s test_ipython_start_kernel_userns failed (2 runs remaining out of 3). 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 157s from _pydevd_bundle.pydevd_cython_wrapper import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 157s mod = getattr(__import__(check_name), mod_name) 157s ~~~~~~~~~~^^^^^^^^^^^^ 157s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "", line 4, in 157s launch_new_instance(user_ns=ns) 157s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 157s app.initialize(argv) 157s ~~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 157s return method(app, *args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 157s self.init_kernel() 157s ~~~~~~~~~~~~~~~~^^ 157s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 157s kernel = kernel_factory( 157s parent=self, 157s ...<11 lines>... 157s user_ns=self.user_ns, 157s ) 157s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 157s inst = cls(*args, **kwargs) 157s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 157s from .debugger import Debugger, _is_debugpy_available 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 157s raise e 157s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 157s from debugpy.server import api # noqa: F401 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 157s import debugpy._vendored.force_pydevd # noqa 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 157s preimport('pydevd', [ 157s ~~~~~~~~~^^^^^^^^^^^^ 157s '_pydev_bundle', 157s ^^^^^^^^^^^^^^^^ 157s ...<5 lines>... 157s 'pydevd', 157s ^^^^^^^^^ 157s ]) 157s ^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 157s import_module(name) 157s ~~~~~~~~~~~~~^^^^^^ 157s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 157s return _bootstrap._gcd_import(name[level:], package, level) 157s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 157s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 157s from _pydevd_bundle import pydevd_vars 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 157s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 157s from _pydevd_sys_monitoring import pydevd_sys_monitoring 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 157s from ._pydevd_sys_monitoring import * 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 157s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 157s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 157s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 157s ...<4 lines>... 157s ) # @UnusedImport 157s ^ 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 157s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 157s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 157s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 157s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 157s ...<4 lines>... 157s ) 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 157s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 157s _opcode.opmap["BEFORE_ASYNC_WITH"], 157s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 157s KeyError: 'BEFORE_ASYNC_WITH' 157s 157s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 157s test_ipython_start_kernel_userns failed (1 runs remaining out of 3). 157s 157s Kernel failed to start: 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 157s from ._pydevd_sys_monitoring_cython import * 157s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 157s from _pydevd_bundle_ext import pydevd_cython as mod 157s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 157s 157s During handling of the above exception, another exception occurred: 157s 157s Traceback (most recent call last): 157s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 157s from _pydevd_bundle import pydevd_cython as mod 157s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 157s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 158s from _pydevd_bundle.pydevd_cython_wrapper import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 158s mod = getattr(__import__(check_name), mod_name) 158s ~~~~~~~~~~^^^^^^^^^^^^ 158s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "", line 4, in 158s launch_new_instance(user_ns=ns) 158s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 158s app.initialize(argv) 158s ~~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 158s return method(app, *args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 158s self.init_kernel() 158s ~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 158s kernel = kernel_factory( 158s parent=self, 158s ...<11 lines>... 158s user_ns=self.user_ns, 158s ) 158s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 158s inst = cls(*args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 158s from .debugger import Debugger, _is_debugpy_available 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 158s raise e 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 158s from debugpy.server import api # noqa: F401 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 158s import debugpy._vendored.force_pydevd # noqa 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 158s preimport('pydevd', [ 158s ~~~~~~~~~^^^^^^^^^^^^ 158s '_pydev_bundle', 158s ^^^^^^^^^^^^^^^^ 158s ...<5 lines>... 158s 'pydevd', 158s ^^^^^^^^^ 158s ]) 158s ^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 158s import_module(name) 158s ~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 158s return _bootstrap._gcd_import(name[level:], package, level) 158s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 158s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 158s from _pydevd_bundle import pydevd_vars 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 158s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 158s from _pydevd_sys_monitoring import pydevd_sys_monitoring 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 158s from ._pydevd_sys_monitoring import * 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 158s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 158s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s ...<4 lines>... 158s ) # @UnusedImport 158s ^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 158s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 158s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 158s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 158s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 158s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 158s _opcode.opmap["BEFORE_ASYNC_WITH"], 158s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 158s KeyError: 'BEFORE_ASYNC_WITH' 158s 158s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 158s test_ipython_start_kernel_userns failed; it passed 0 out of the required 1 times. 158s 158s Kernel failed to start: 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 158s from ._pydevd_sys_monitoring_cython import * 158s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 158s from _pydevd_bundle_ext import pydevd_cython as mod 158s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 158s from _pydevd_bundle import pydevd_cython as mod 158s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 158s from _pydevd_bundle.pydevd_cython_wrapper import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 158s mod = getattr(__import__(check_name), mod_name) 158s ~~~~~~~~~~^^^^^^^^^^^^ 158s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "", line 4, in 158s launch_new_instance(user_ns=ns) 158s ~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 158s app.initialize(argv) 158s ~~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 158s return method(app, *args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 158s self.init_kernel() 158s ~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 158s kernel = kernel_factory( 158s parent=self, 158s ...<11 lines>... 158s user_ns=self.user_ns, 158s ) 158s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 158s inst = cls(*args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 158s from .debugger import Debugger, _is_debugpy_available 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 158s raise e 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 158s from debugpy.server import api # noqa: F401 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 158s import debugpy._vendored.force_pydevd # noqa 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 158s preimport('pydevd', [ 158s ~~~~~~~~~^^^^^^^^^^^^ 158s '_pydev_bundle', 158s ^^^^^^^^^^^^^^^^ 158s ...<5 lines>... 158s 'pydevd', 158s ^^^^^^^^^ 158s ]) 158s ^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 158s import_module(name) 158s ~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 158s return _bootstrap._gcd_import(name[level:], package, level) 158s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 158s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 158s from _pydevd_bundle import pydevd_vars 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 158s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 158s from _pydevd_sys_monitoring import pydevd_sys_monitoring 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 158s from ._pydevd_sys_monitoring import * 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 158s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 158s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s ...<4 lines>... 158s ) # @UnusedImport 158s ^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 158s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 158s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 158s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 158s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 158s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 158s _opcode.opmap["BEFORE_ASYNC_WITH"], 158s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 158s KeyError: 'BEFORE_ASYNC_WITH' 158s 158s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 158s test_ipython_start_kernel_no_userns failed (2 runs remaining out of 3). 158s 158s Kernel failed to start: 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 158s from ._pydevd_sys_monitoring_cython import * 158s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 158s from _pydevd_bundle_ext import pydevd_cython as mod 158s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 158s from _pydevd_bundle import pydevd_cython as mod 158s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 158s from _pydevd_bundle.pydevd_cython_wrapper import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 158s mod = getattr(__import__(check_name), mod_name) 158s ~~~~~~~~~~^^^^^^^^^^^^ 158s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "", line 3, in 158s launch_new_instance() 158s ~~~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 158s app.initialize(argv) 158s ~~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 158s return method(app, *args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 158s self.init_kernel() 158s ~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 158s kernel = kernel_factory( 158s parent=self, 158s ...<11 lines>... 158s user_ns=self.user_ns, 158s ) 158s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 158s inst = cls(*args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 158s from .debugger import Debugger, _is_debugpy_available 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 158s raise e 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 158s from debugpy.server import api # noqa: F401 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 158s import debugpy._vendored.force_pydevd # noqa 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 158s preimport('pydevd', [ 158s ~~~~~~~~~^^^^^^^^^^^^ 158s '_pydev_bundle', 158s ^^^^^^^^^^^^^^^^ 158s ...<5 lines>... 158s 'pydevd', 158s ^^^^^^^^^ 158s ]) 158s ^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 158s import_module(name) 158s ~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 158s return _bootstrap._gcd_import(name[level:], package, level) 158s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 158s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 158s from _pydevd_bundle import pydevd_vars 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 158s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 158s from _pydevd_sys_monitoring import pydevd_sys_monitoring 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 158s from ._pydevd_sys_monitoring import * 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 158s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 158s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s ...<4 lines>... 158s ) # @UnusedImport 158s ^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 158s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 158s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 158s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 158s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 158s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 158s _opcode.opmap["BEFORE_ASYNC_WITH"], 158s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 158s KeyError: 'BEFORE_ASYNC_WITH' 158s 158s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 158s test_ipython_start_kernel_no_userns failed (1 runs remaining out of 3). 158s 158s Kernel failed to start: 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 158s from ._pydevd_sys_monitoring_cython import * 158s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 158s from _pydevd_bundle_ext import pydevd_cython as mod 158s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 158s from _pydevd_bundle import pydevd_cython as mod 158s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 158s from _pydevd_bundle.pydevd_cython_wrapper import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 158s mod = getattr(__import__(check_name), mod_name) 158s ~~~~~~~~~~^^^^^^^^^^^^ 158s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "", line 3, in 158s launch_new_instance() 158s ~~~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 158s app.initialize(argv) 158s ~~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 158s return method(app, *args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 158s self.init_kernel() 158s ~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 158s kernel = kernel_factory( 158s parent=self, 158s ...<11 lines>... 158s user_ns=self.user_ns, 158s ) 158s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 158s inst = cls(*args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 158s from .debugger import Debugger, _is_debugpy_available 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 158s raise e 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 158s from debugpy.server import api # noqa: F401 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 158s import debugpy._vendored.force_pydevd # noqa 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 158s preimport('pydevd', [ 158s ~~~~~~~~~^^^^^^^^^^^^ 158s '_pydev_bundle', 158s ^^^^^^^^^^^^^^^^ 158s ...<5 lines>... 158s 'pydevd', 158s ^^^^^^^^^ 158s ]) 158s ^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 158s import_module(name) 158s ~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 158s return _bootstrap._gcd_import(name[level:], package, level) 158s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 158s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 158s from _pydevd_bundle import pydevd_vars 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 158s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 158s from _pydevd_sys_monitoring import pydevd_sys_monitoring 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 158s from ._pydevd_sys_monitoring import * 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 158s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 158s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s ...<4 lines>... 158s ) # @UnusedImport 158s ^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 158s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 158s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 158s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 158s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 158s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 158s _opcode.opmap["BEFORE_ASYNC_WITH"], 158s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 158s KeyError: 'BEFORE_ASYNC_WITH' 158s 158s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 158s test_ipython_start_kernel_no_userns failed; it passed 0 out of the required 1 times. 158s 158s Kernel failed to start: 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 12, in 158s from ._pydevd_sys_monitoring_cython import * 158s ModuleNotFoundError: No module named '_pydevd_sys_monitoring._pydevd_sys_monitoring_cython' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 5, in 158s from _pydevd_bundle_ext import pydevd_cython as mod 158s ModuleNotFoundError: No module named '_pydevd_bundle_ext' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 8, in 158s from _pydevd_bundle import pydevd_cython as mod 158s ImportError: cannot import name 'pydevd_cython' from '_pydevd_bundle' (/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py) 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 62, in 158s from _pydevd_bundle.pydevd_cython_wrapper import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py", line 32, in 158s mod = getattr(__import__(check_name), mod_name) 158s ~~~~~~~~~~^^^^^^^^^^^^ 158s ModuleNotFoundError: No module named '_pydevd_bundle.pydevd_cython_linux_314_64' 158s 158s During handling of the above exception, another exception occurred: 158s 158s Traceback (most recent call last): 158s File "", line 3, in 158s launch_new_instance() 158s ~~~~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 1074, in launch_instance 158s app.initialize(argv) 158s ~~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3/dist-packages/traitlets/config/application.py", line 118, in inner 158s return method(app, *args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 707, in initialize 158s self.init_kernel() 158s ~~~~~~~~~~~~~~~~^^ 158s File "/usr/lib/python3/dist-packages/ipykernel/kernelapp.py", line 555, in init_kernel 158s kernel = kernel_factory( 158s parent=self, 158s ...<11 lines>... 158s user_ns=self.user_ns, 158s ) 158s File "/usr/lib/python3/dist-packages/traitlets/config/configurable.py", line 583, in instance 158s inst = cls(*args, **kwargs) 158s File "/usr/lib/python3/dist-packages/ipykernel/ipkernel.py", line 117, in __init__ 158s from .debugger import Debugger, _is_debugpy_available 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 41, in 158s raise e 158s File "/usr/lib/python3/dist-packages/ipykernel/debugger.py", line 24, in 158s from debugpy.server import api # noqa: F401 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/server/__init__.py", line 7, in 158s import debugpy._vendored.force_pydevd # noqa 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/force_pydevd.py", line 44, in 158s preimport('pydevd', [ 158s ~~~~~~~~~^^^^^^^^^^^^ 158s '_pydev_bundle', 158s ^^^^^^^^^^^^^^^^ 158s ...<5 lines>... 158s 'pydevd', 158s ^^^^^^^^^ 158s ]) 158s ^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/__init__.py", line 126, in preimport 158s import_module(name) 158s ~~~~~~~~~~~~~^^^^^^ 158s File "/usr/lib/python3.14/importlib/__init__.py", line 88, in import_module 158s return _bootstrap._gcd_import(name[level:], package, level) 158s ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/pydevd.py", line 51, in 158s from _pydev_bundle.pydev_console_utils import DebugConsoleStdIn 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py", line 6, in 158s from _pydevd_bundle import pydevd_vars 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py", line 11, in 158s from _pydevd_bundle.pydevd_thread_lifecycle import resume_threads, mark_thread_suspended, suspend_all_threads, suspend_threads_lock 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py", line 8, in 158s from _pydevd_sys_monitoring import pydevd_sys_monitoring 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py", line 14, in 158s from ._pydevd_sys_monitoring import * 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py", line 31, in 158s from _pydevd_bundle.pydevd_trace_dispatch import should_stop_on_exception, handle_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py", line 84, in 158s from _pydevd_bundle.pydevd_trace_dispatch_regular import ( 158s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 158s ...<4 lines>... 158s ) # @UnusedImport 158s ^ 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py", line 18, in 158s from _pydevd_bundle.pydevd_frame import PyDBFrame, is_unhandled_exception 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py", line 22, in 158s from _pydevd_bundle.pydevd_bytecode_utils import get_smart_step_into_variant_from_frame_offset 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py", line 9, in 158s from _pydevd_frame_eval.vendored.bytecode.instr import _Variable, Label 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py", line 19, in 158s from _pydevd_frame_eval.vendored.bytecode.bytecode import ( 158s ...<4 lines>... 158s ) 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py", line 20, in 158s from _pydevd_frame_eval.vendored.bytecode.flags import CompilerFlags, infer_flags 158s File "/usr/lib/python3/dist-packages/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py", line 51, in 158s _opcode.opmap["BEFORE_ASYNC_WITH"], 158s ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^ 158s KeyError: 'BEFORE_ASYNC_WITH' 158s 158s [, , , , , , , , , , , , , , , , , , , , , , , , , , , , , ] 158s 158s ===End Flaky Test Report=== 158s =========================== short test summary info ============================ 158s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_complete 158s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_execute 158s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_history 158s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_inspect 158s FAILED tests/inprocess/test_kernelmanager.py::InProcessKernelManagerTestCase::test_interface 158s FAILED tests/test_embed_kernel.py::test_embed_kernel_basic - OSError: Kernel ... 158s FAILED tests/test_embed_kernel.py::test_embed_kernel_namespace - OSError: Ker... 158s FAILED tests/test_embed_kernel.py::test_embed_kernel_reentrant - OSError: Ker... 158s FAILED tests/test_embed_kernel.py::test_embed_kernel_func - KeyError: 'BEFORE... 158s FAILED tests/test_io.py::test_event_pipe_gc - Failed: async def functions are... 158s FAILED tests/test_kernel_direct.py::test_direct_kernel_info_request - Failed:... 158s FAILED tests/test_kernel_direct.py::test_direct_execute_request - Failed: asy... 158s FAILED tests/test_kernel_direct.py::test_direct_execute_request_aborting - Fa... 158s FAILED tests/test_kernel_direct.py::test_direct_execute_request_error - Faile... 158s FAILED tests/test_kernel_direct.py::test_complete_request - Failed: async def... 158s FAILED tests/test_kernel_direct.py::test_inspect_request - Failed: async def ... 158s FAILED tests/test_kernel_direct.py::test_history_request - Failed: async def ... 158s FAILED tests/test_kernel_direct.py::test_comm_info_request - Failed: async de... 158s FAILED tests/test_kernel_direct.py::test_direct_interrupt_request - Failed: a... 158s FAILED tests/test_kernel_direct.py::test_direct_shutdown_request - Failed: as... 158s FAILED tests/test_kernel_direct.py::test_is_complete_request - Failed: async ... 158s FAILED tests/test_kernel_direct.py::test_direct_debug_request - Failed: async... 158s FAILED tests/test_kernel_direct.py::test_deprecated_features - Failed: async ... 158s FAILED tests/test_kernel_direct.py::test_process_control - Failed: async def ... 158s FAILED tests/test_kernel_direct.py::test_dispatch_shell - Failed: async def f... 158s FAILED tests/test_kernel_direct.py::test_do_one_iteration - Failed: async def... 158s FAILED tests/test_kernel_direct.py::test_publish_debug_event - Failed: async ... 158s FAILED tests/test_kernel_direct.py::test_connect_request - Failed: async def ... 158s FAILED tests/test_kernel_direct.py::test_send_interrupt_children - Failed: as... 158s FAILED tests/test_kernelspec.py::test_install_kernelspec - traitlets.config.c... 158s FAILED tests/test_start_kernel.py::test_ipython_start_kernel_userns - OSError... 158s FAILED tests/test_start_kernel.py::test_ipython_start_kernel_no_userns - OSEr... 158s ERROR tests/inprocess/test_kernel.py::test_with_cell_id - KeyError: 'BEFORE_A... 158s ERROR tests/inprocess/test_kernel.py::test_pylab - KeyError: 'BEFORE_ASYNC_WITH' 158s ERROR tests/inprocess/test_kernel.py::test_raw_input - KeyError: 'BEFORE_ASYN... 158s ERROR tests/inprocess/test_kernel.py::test_stdout - KeyError: 'BEFORE_ASYNC_W... 158s ERROR tests/inprocess/test_kernel.py::test_getpass_stream - KeyError: 'BEFORE... 158s ERROR tests/inprocess/test_kernel.py::test_do_execute - KeyError: 'BEFORE_ASY... 158s ERROR tests/test_comm.py::test_comm_in_manager - KeyError: 'BEFORE_ASYNC_WITH' 158s ERROR tests/test_ipkernel_direct.py::test_properties - KeyError: 'BEFORE_ASYN... 158s ERROR tests/test_ipkernel_direct.py::test_direct_kernel_info_request - KeyErr... 158s ERROR tests/test_ipkernel_direct.py::test_direct_execute_request - KeyError: ... 158s ERROR tests/test_ipkernel_direct.py::test_direct_execute_request_aborting - K... 158s ERROR tests/test_ipkernel_direct.py::test_complete_request - KeyError: 'BEFOR... 158s ERROR tests/test_ipkernel_direct.py::test_inspect_request - KeyError: 'BEFORE... 158s ERROR tests/test_ipkernel_direct.py::test_history_request - KeyError: 'BEFORE... 158s ERROR tests/test_ipkernel_direct.py::test_comm_info_request - KeyError: 'BEFO... 158s ERROR tests/test_ipkernel_direct.py::test_direct_interrupt_request - KeyError... 158s ERROR tests/test_ipkernel_direct.py::test_is_complete_request - KeyError: 'BE... 158s ERROR tests/test_ipkernel_direct.py::test_do_apply - KeyError: 'BEFORE_ASYNC_... 158s ERROR tests/test_ipkernel_direct.py::test_direct_debug_request - KeyError: 'B... 158s ERROR tests/test_ipkernel_direct.py::test_direct_clear - KeyError: 'BEFORE_AS... 158s ERROR tests/test_ipkernel_direct.py::test_cancel_on_sigint - KeyError: 'BEFOR... 158s ERROR tests/test_ipkernel_direct.py::test_dispatch_debugpy - KeyError: 'BEFOR... 158s ERROR tests/test_ipkernel_direct.py::test_start - KeyError: 'BEFORE_ASYNC_WITH' 158s ERROR tests/test_ipkernel_direct.py::test_start_no_debugpy - KeyError: 'BEFOR... 158s ERROR tests/test_ipkernel_direct.py::test_finish_metadata - KeyError: 'BEFORE... 158s ERROR tests/test_ipkernel_direct.py::test_do_debug_request - KeyError: 'BEFOR... 158s = 32 failed, 110 passed, 17 skipped, 1 deselected, 4 warnings, 26 errors in 75.78s (0:01:15) = 158s autopkgtest [12:09:11]: test pytest: -----------------------] 160s autopkgtest [12:09:13]: test pytest: - - - - - - - - - - results - - - - - - - - - - 160s pytest FAIL non-zero exit status 1 160s autopkgtest [12:09:13]: @@@@@@@@@@@@@@@@@@@@ summary 160s pytest FAIL non-zero exit status 1