0s autopkgtest [12:04:40]: starting date and time: 2025-11-17 12:04:40+0000 0s autopkgtest [12:04:40]: git checkout: 4b346b80 nova: make wait_reboot return success even when a no-op 0s autopkgtest [12:04:40]: host juju-7f2275-prod-proposed-migration-environment-20; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.ki1_wbk_/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:con-duct,src:python3-defaults --apt-upgrade con-duct --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=con-duct/0.17.0-1 python3-defaults/3.13.7-2' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-ppc64el --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-20@bos03-ppc64el-1.secgroup --name adt-resolute-ppc64el-con-duct-20251117-120440-juju-7f2275-prod-proposed-migration-environment-20-ccf5e689-8b7f-4a78-adbb-4c8e3357cb4c --image adt/ubuntu-resolute-ppc64el-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-20 --net-id=net_prod-proposed-migration-ppc64el -e TERM=linux --mirror=http://ftpmaster.internal/ubuntu/ 3s Creating nova instance adt-resolute-ppc64el-con-duct-20251117-120440-juju-7f2275-prod-proposed-migration-environment-20-ccf5e689-8b7f-4a78-adbb-4c8e3357cb4c from image adt/ubuntu-resolute-ppc64el-server-20251117.img (UUID c6f5b741-c77a-45db-84cb-f00b40e77676)... 58s autopkgtest [12:05:38]: testbed dpkg architecture: ppc64el 58s autopkgtest [12:05:38]: testbed apt version: 3.1.11 59s autopkgtest [12:05:39]: @@@@@@@@@@@@@@@@@@@@ test bed setup 59s autopkgtest [12:05:39]: testbed release detected to be: None 59s autopkgtest [12:05:39]: updating testbed package index (apt update) 60s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease [87.8 kB] 60s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 60s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 60s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 60s Get:5 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse Sources [22.9 kB] 60s Get:6 http://ftpmaster.internal/ubuntu resolute-proposed/universe Sources [868 kB] 61s Get:7 http://ftpmaster.internal/ubuntu resolute-proposed/restricted Sources [9848 B] 61s Get:8 http://ftpmaster.internal/ubuntu resolute-proposed/main Sources [81.1 kB] 61s Get:9 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el Packages [140 kB] 61s Get:10 http://ftpmaster.internal/ubuntu resolute-proposed/restricted ppc64el Packages [940 B] 61s Get:11 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el Packages [562 kB] 61s Get:12 http://ftpmaster.internal/ubuntu resolute-proposed/multiverse ppc64el Packages [11.0 kB] 61s Fetched 1784 kB in 1s (1443 kB/s) 62s Reading package lists... 63s Hit:1 http://ftpmaster.internal/ubuntu resolute-proposed InRelease 63s Hit:2 http://ftpmaster.internal/ubuntu resolute InRelease 63s Hit:3 http://ftpmaster.internal/ubuntu resolute-updates InRelease 63s Hit:4 http://ftpmaster.internal/ubuntu resolute-security InRelease 64s Reading package lists... 64s Reading package lists... 64s Building dependency tree... 64s Reading state information... 64s Calculating upgrade... 64s The following packages will be upgraded: 64s libpython3-stdlib python3 python3-minimal usbutils 64s 4 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 64s Need to get 154 kB of archives. 64s After this operation, 0 B of additional disk space will be used. 64s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3-minimal ppc64el 3.13.7-2 [27.8 kB] 64s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3 ppc64el 3.13.7-2 [23.9 kB] 64s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el libpython3-stdlib ppc64el 3.13.7-2 [10.6 kB] 64s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el usbutils ppc64el 1:019-1 [91.5 kB] 65s dpkg-preconfigure: unable to re-open stdin: No such file or directory 65s Fetched 154 kB in 0s (350 kB/s) 65s (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 ... 81022 files and directories currently installed.) 65s Preparing to unpack .../python3-minimal_3.13.7-2_ppc64el.deb ... 65s Unpacking python3-minimal (3.13.7-2) over (3.13.7-1) ... 65s Setting up python3-minimal (3.13.7-2) ... 65s (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 ... 81022 files and directories currently installed.) 65s Preparing to unpack .../python3_3.13.7-2_ppc64el.deb ... 65s running python pre-rtupdate hooks for python3.13... 65s Unpacking python3 (3.13.7-2) over (3.13.7-1) ... 66s Preparing to unpack .../libpython3-stdlib_3.13.7-2_ppc64el.deb ... 66s Unpacking libpython3-stdlib:ppc64el (3.13.7-2) over (3.13.7-1) ... 66s Preparing to unpack .../usbutils_1%3a019-1_ppc64el.deb ... 66s Unpacking usbutils (1:019-1) over (1:018-2) ... 66s Setting up usbutils (1:019-1) ... 66s Setting up libpython3-stdlib:ppc64el (3.13.7-2) ... 66s Setting up python3 (3.13.7-2) ... 66s running python rtupdate hooks for python3.13... 66s running python post-rtupdate hooks for python3.13... 66s Processing triggers for man-db (2.13.1-1) ... 68s autopkgtest [12:05:48]: upgrading testbed (apt dist-upgrade and autopurge) 68s Reading package lists... 68s Building dependency tree... 68s Reading state information... 68s Calculating upgrade... 68s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 68s Reading package lists... 69s Building dependency tree... 69s Reading state information... 69s Solving dependencies... 69s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 72s autopkgtest [12:05:52]: testbed running kernel: Linux 6.17.0-5-generic #5-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 22 10:02:41 UTC 2025 72s autopkgtest [12:05:52]: @@@@@@@@@@@@@@@@@@@@ apt-source con-duct 74s Get:1 http://ftpmaster.internal/ubuntu resolute-proposed/universe con-duct 0.17.0-1 (dsc) [2831 B] 74s Get:2 http://ftpmaster.internal/ubuntu resolute-proposed/universe con-duct 0.17.0-1 (tar) [63.8 kB] 74s Get:3 http://ftpmaster.internal/ubuntu resolute-proposed/universe con-duct 0.17.0-1 (diff) [4260 B] 74s gpgv: Signature made Fri Oct 31 00:40:32 2025 UTC 74s gpgv: using RSA key 13796755BBC72BB8ABE2AEB5FA9DEC5DE11C63F1 74s gpgv: issuer "eamanu@debian.org" 74s gpgv: Can't check signature: No public key 74s dpkg-source: warning: cannot verify inline signature for ./con-duct_0.17.0-1.dsc: no acceptable signature found 74s autopkgtest [12:05:54]: testing package con-duct version 0.17.0-1 74s autopkgtest [12:05:54]: build not needed 77s autopkgtest [12:05:57]: test pybuild-autopkgtest: preparing testbed 77s Reading package lists... 77s Building dependency tree... 77s Reading state information... 77s Solving dependencies... 77s The following NEW packages will be installed: 77s autoconf automake autopoint autotools-dev blt build-essential con-duct cpp 77s cpp-15 cpp-15-powerpc64le-linux-gnu cpp-powerpc64le-linux-gnu debhelper 77s debugedit dh-autoreconf dh-python dh-strip-nondeterminism dwz 77s fontconfig-config fonts-dejavu-core fonts-dejavu-mono fonts-lyx g++ g++-15 77s g++-15-powerpc64le-linux-gnu g++-powerpc64le-linux-gnu gcc gcc-15 77s gcc-15-powerpc64le-linux-gnu gcc-powerpc64le-linux-gnu gettext help2man 77s intltool-debian libarchive-zip-perl libasan8 libblas3 libcc1-0 77s libdebhelper-perl libdeflate0 libfile-stripnondeterminism-perl 77s libfontconfig1 libgcc-15-dev libgfortran5 libgomp1 libgraphite2-3 77s libharfbuzz0b libimagequant0 libisl23 libitm1 libjbig0 libjpeg-turbo8 77s libjpeg8 libjs-jquery libjs-jquery-hotkeys libjs-jquery-isonscreen 77s libjs-jquery-metadata libjs-jquery-tablesorter 77s libjs-jquery-throttle-debounce liblapack3 liblcms2-2 liblerc4 liblsan0 77s libmpc3 libopenjp2-7 libpython3.14-minimal libpython3.14-stdlib 77s libqhull-r8.0 libquadmath0 libraqm0 libsharpyuv0 libstdc++-15-dev libtcl8.6 77s libtiff6 libtk8.6 libtool libtsan2 libubsan1 libwebp7 libwebpdemux2 77s libwebpmux3 libxft2 libxrender1 libxslt1.1 libxss1 libzopfli1 m4 po-debconf 77s pybuild-plugin-autopkgtest pybuild-plugin-pyproject python-matplotlib-data 77s python3-all python3-blessed python3-brotli python3-build python3-contourpy 77s python3-coverage python3-cycler python3-decorator python3-fonttools 77s python3-fs python3-iniconfig python3-installer python3-kiwisolver 77s python3-lxml python3-lz4 python3-matplotlib python3-mpmath python3-numpy 77s python3-numpy-dev python3-pil python3-pil.imagetk python3-platformdirs 77s python3-pluggy python3-pyout python3-pyproject-hooks python3-pytest 77s python3-pytest-cov python3-pytest-rerunfailures python3-scipy python3-sympy 77s python3-tk python3-ufolib2 python3-wcwidth python3-wheel python3-zopfli 77s python3.13-tk python3.14 python3.14-minimal python3.14-tk tk8.6-blt2.5 77s unicode-data x11-common 78s 0 upgraded, 131 newly installed, 0 to remove and 0 not upgraded. 78s Need to get 154 MB of archives. 78s After this operation, 647 MB of additional disk space will be used. 78s Get:1 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-numpy-dev ppc64el 1:2.2.4+ds-1ubuntu1 [153 kB] 78s Get:2 http://ftpmaster.internal/ubuntu resolute/main ppc64el libblas3 ppc64el 3.12.1-7 [291 kB] 78s Get:3 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgfortran5 ppc64el 15.2.0-7ubuntu1 [620 kB] 79s Get:4 http://ftpmaster.internal/ubuntu resolute/main ppc64el liblapack3 ppc64el 3.12.1-7 [2960 kB] 80s Get:5 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-numpy ppc64el 1:2.2.4+ds-1ubuntu1 [4887 kB] 83s Get:6 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-minimal ppc64el 3.14.0-4 [908 kB] 83s Get:7 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14-minimal ppc64el 3.14.0-4 [2705 kB] 85s Get:8 http://ftpmaster.internal/ubuntu resolute/main ppc64el m4 ppc64el 1.4.20-2 [236 kB] 85s Get:9 http://ftpmaster.internal/ubuntu resolute/main ppc64el autoconf all 2.72-3.1ubuntu1 [384 kB] 85s Get:10 http://ftpmaster.internal/ubuntu resolute/main ppc64el autotools-dev all 20240727.1 [43.4 kB] 85s Get:11 http://ftpmaster.internal/ubuntu resolute/main ppc64el automake all 1:1.18.1-2 [581 kB] 85s Get:12 http://ftpmaster.internal/ubuntu resolute/main ppc64el autopoint all 0.23.2-1 [620 kB] 85s Get:13 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtcl8.6 ppc64el 8.6.17+dfsg-1 [1239 kB] 86s Get:14 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-dejavu-mono all 2.37-8 [502 kB] 86s Get:15 http://ftpmaster.internal/ubuntu resolute/main ppc64el fonts-dejavu-core all 2.37-8 [835 kB] 86s Get:16 http://ftpmaster.internal/ubuntu resolute/main ppc64el fontconfig-config ppc64el 2.15.0-2.3ubuntu1 [38.1 kB] 86s Get:17 http://ftpmaster.internal/ubuntu resolute/main ppc64el libfontconfig1 ppc64el 2.15.0-2.3ubuntu1 [188 kB] 86s Get:18 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxrender1 ppc64el 1:0.9.12-1 [23.0 kB] 86s Get:19 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxft2 ppc64el 2.3.6-1build1 [61.5 kB] 86s Get:20 http://ftpmaster.internal/ubuntu resolute/main ppc64el x11-common all 1:7.7+24ubuntu1 [22.4 kB] 86s Get:21 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxss1 ppc64el 1:1.2.3-1build3 [7980 B] 86s Get:22 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtk8.6 ppc64el 8.6.17-1 [968 kB] 87s Get:23 http://ftpmaster.internal/ubuntu resolute/main ppc64el tk8.6-blt2.5 ppc64el 2.5.3+dfsg-8 [778 kB] 87s Get:24 http://ftpmaster.internal/ubuntu resolute/main ppc64el blt ppc64el 2.5.3+dfsg-8 [4830 B] 87s Get:25 http://ftpmaster.internal/ubuntu resolute/main ppc64el libisl23 ppc64el 0.27-1 [882 kB] 87s Get:26 http://ftpmaster.internal/ubuntu resolute/main ppc64el libmpc3 ppc64el 1.3.1-2 [62.5 kB] 87s Get:27 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-15-powerpc64le-linux-gnu ppc64el 15.2.0-7ubuntu1 [11.4 MB] 90s Get:28 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-15 ppc64el 15.2.0-7ubuntu1 [1032 B] 90s Get:29 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [5746 B] 90s Get:30 http://ftpmaster.internal/ubuntu resolute/main ppc64el cpp ppc64el 4:15.2.0-4ubuntu1 [22.4 kB] 90s Get:31 http://ftpmaster.internal/ubuntu resolute/main ppc64el libcc1-0 ppc64el 15.2.0-7ubuntu1 [49.0 kB] 90s Get:32 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgomp1 ppc64el 15.2.0-7ubuntu1 [169 kB] 90s Get:33 http://ftpmaster.internal/ubuntu resolute/main ppc64el libitm1 ppc64el 15.2.0-7ubuntu1 [32.3 kB] 90s Get:34 http://ftpmaster.internal/ubuntu resolute/main ppc64el libasan8 ppc64el 15.2.0-7ubuntu1 [3006 kB] 91s Get:35 http://ftpmaster.internal/ubuntu resolute/main ppc64el liblsan0 ppc64el 15.2.0-7ubuntu1 [1374 kB] 91s Get:36 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtsan2 ppc64el 15.2.0-7ubuntu1 [2728 kB] 91s Get:37 http://ftpmaster.internal/ubuntu resolute/main ppc64el libubsan1 ppc64el 15.2.0-7ubuntu1 [1231 kB] 91s Get:38 http://ftpmaster.internal/ubuntu resolute/main ppc64el libquadmath0 ppc64el 15.2.0-7ubuntu1 [160 kB] 91s Get:39 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgcc-15-dev ppc64el 15.2.0-7ubuntu1 [1670 kB] 92s Get:40 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15-powerpc64le-linux-gnu ppc64el 15.2.0-7ubuntu1 [22.4 MB] 95s Get:41 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-15 ppc64el 15.2.0-7ubuntu1 [524 kB] 95s Get:42 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [1220 B] 95s Get:43 http://ftpmaster.internal/ubuntu resolute/main ppc64el gcc ppc64el 4:15.2.0-4ubuntu1 [5032 B] 95s Get:44 http://ftpmaster.internal/ubuntu resolute/main ppc64el libstdc++-15-dev ppc64el 15.2.0-7ubuntu1 [2744 kB] 95s Get:45 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-15-powerpc64le-linux-gnu ppc64el 15.2.0-7ubuntu1 [13.0 MB] 97s Get:46 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-15 ppc64el 15.2.0-7ubuntu1 [23.7 kB] 97s Get:47 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++-powerpc64le-linux-gnu ppc64el 4:15.2.0-4ubuntu1 [970 B] 97s Get:48 http://ftpmaster.internal/ubuntu resolute/main ppc64el g++ ppc64el 4:15.2.0-4ubuntu1 [1092 B] 97s Get:49 http://ftpmaster.internal/ubuntu resolute/main ppc64el build-essential ppc64el 12.12ubuntu1 [5094 B] 97s Get:50 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-wcwidth all 0.2.13+dfsg1-1 [26.3 kB] 97s Get:51 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-blessed all 1.21.0-1 [50.4 kB] 97s Get:52 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pyout all 0.8.1-1 [41.9 kB] 97s Get:53 http://ftpmaster.internal/ubuntu resolute-proposed/universe ppc64el con-duct all 0.17.0-1 [26.5 kB] 97s Get:54 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdebhelper-perl all 13.24.2ubuntu1 [95.7 kB] 97s Get:55 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtool all 2.5.4-7 [169 kB] 97s Get:56 http://ftpmaster.internal/ubuntu resolute/main ppc64el dh-autoreconf all 21 [12.5 kB] 97s Get:57 http://ftpmaster.internal/ubuntu resolute/main ppc64el libarchive-zip-perl all 1.68-1 [90.2 kB] 97s Get:58 http://ftpmaster.internal/ubuntu resolute/main ppc64el libfile-stripnondeterminism-perl all 1.15.0-1 [20.5 kB] 97s Get:59 http://ftpmaster.internal/ubuntu resolute/main ppc64el dh-strip-nondeterminism all 1.15.0-1 [5090 B] 97s Get:60 http://ftpmaster.internal/ubuntu resolute/main ppc64el debugedit ppc64el 1:5.2-3 [57.3 kB] 97s Get:61 http://ftpmaster.internal/ubuntu resolute/main ppc64el dwz ppc64el 0.16-2 [142 kB] 97s Get:62 http://ftpmaster.internal/ubuntu resolute/main ppc64el gettext ppc64el 0.23.2-1 [1177 kB] 97s Get:63 http://ftpmaster.internal/ubuntu resolute/main ppc64el intltool-debian all 0.35.0+20060710.6 [23.2 kB] 97s Get:64 http://ftpmaster.internal/ubuntu resolute/main ppc64el po-debconf all 1.0.21+nmu1 [233 kB] 98s Get:65 http://ftpmaster.internal/ubuntu resolute/main ppc64el debhelper all 13.24.2ubuntu1 [896 kB] 98s Get:66 http://ftpmaster.internal/ubuntu resolute/universe ppc64el dh-python all 6.20250414 [119 kB] 98s Get:67 http://ftpmaster.internal/ubuntu resolute/universe ppc64el fonts-lyx all 2.4.4-2 [171 kB] 98s Get:68 http://ftpmaster.internal/ubuntu resolute/universe ppc64el help2man ppc64el 1.49.3 [201 kB] 98s Get:69 http://ftpmaster.internal/ubuntu resolute/main ppc64el libdeflate0 ppc64el 1.23-2 [63.3 kB] 98s Get:70 http://ftpmaster.internal/ubuntu resolute/main ppc64el libgraphite2-3 ppc64el 1.3.14-2ubuntu1 [84.6 kB] 98s Get:71 http://ftpmaster.internal/ubuntu resolute/main ppc64el libharfbuzz0b ppc64el 12.1.0-1 [679 kB] 98s Get:72 http://ftpmaster.internal/ubuntu resolute/main ppc64el libimagequant0 ppc64el 2.18.0-1build1 [43.2 kB] 98s Get:73 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjpeg-turbo8 ppc64el 2.1.5-4ubuntu2 [215 kB] 98s Get:74 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjpeg8 ppc64el 8c-2ubuntu11 [2148 B] 98s Get:75 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjs-jquery all 3.6.1+dfsg+~3.5.14-1 [328 kB] 98s Get:76 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-metadata all 12-4 [6582 B] 98s Get:77 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-tablesorter all 1:2.31.3+dfsg1-4 [192 kB] 98s Get:78 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-throttle-debounce all 1.1+dfsg.1-2 [12.5 kB] 98s Get:79 http://ftpmaster.internal/ubuntu resolute/main ppc64el liblcms2-2 ppc64el 2.17-1 [246 kB] 98s Get:80 http://ftpmaster.internal/ubuntu resolute/main ppc64el liblerc4 ppc64el 4.0.0+ds-5ubuntu1 [298 kB] 98s Get:81 http://ftpmaster.internal/ubuntu resolute/main ppc64el libpython3.14-stdlib ppc64el 3.14.0-4 [2446 kB] 98s Get:82 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libqhull-r8.0 ppc64el 2020.2-7 [227 kB] 98s Get:83 http://ftpmaster.internal/ubuntu resolute/main ppc64el libraqm0 ppc64el 0.10.3-1 [19.6 kB] 98s Get:84 http://ftpmaster.internal/ubuntu resolute/main ppc64el libsharpyuv0 ppc64el 1.5.0-0.1 [22.3 kB] 98s Get:85 http://ftpmaster.internal/ubuntu resolute/main ppc64el libjbig0 ppc64el 2.1-6.1ubuntu2 [35.9 kB] 98s Get:86 http://ftpmaster.internal/ubuntu resolute/main ppc64el libwebp7 ppc64el 1.5.0-0.1 [315 kB] 98s Get:87 http://ftpmaster.internal/ubuntu resolute/main ppc64el libtiff6 ppc64el 4.7.0-3ubuntu3 [307 kB] 98s Get:88 http://ftpmaster.internal/ubuntu resolute/main ppc64el libwebpdemux2 ppc64el 1.5.0-0.1 [14.6 kB] 98s Get:89 http://ftpmaster.internal/ubuntu resolute/main ppc64el libwebpmux3 ppc64el 1.5.0-0.1 [31.1 kB] 98s Get:90 http://ftpmaster.internal/ubuntu resolute/main ppc64el libxslt1.1 ppc64el 1.1.43-0.3 [190 kB] 98s Get:91 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libzopfli1 ppc64el 1.0.3-3 [160 kB] 98s Get:92 http://ftpmaster.internal/ubuntu resolute/universe ppc64el pybuild-plugin-autopkgtest all 6.20250414 [1746 B] 98s Get:93 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pyproject-hooks all 1.2.0-1 [10.2 kB] 99s Get:94 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-wheel all 0.46.1-2 [22.1 kB] 99s Get:95 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-build all 1.2.2-4 [31.0 kB] 99s Get:96 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-installer all 0.7.0+dfsg1-3 [17.4 kB] 99s Get:97 http://ftpmaster.internal/ubuntu resolute/universe ppc64el pybuild-plugin-pyproject all 6.20250414 [1728 B] 99s Get:98 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python-matplotlib-data all 3.10.7+dfsg1-1 [2930 kB] 99s Get:99 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14 ppc64el 3.14.0-4 [805 kB] 99s Get:100 http://ftpmaster.internal/ubuntu resolute-proposed/main ppc64el python3-all ppc64el 3.13.7-2 [892 B] 99s Get:101 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-brotli ppc64el 1.1.0-2build6 [430 kB] 99s Get:102 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-contourpy ppc64el 1.3.1-2 [274 kB] 100s Get:103 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-coverage ppc64el 7.8.2+dfsg1-1 [158 kB] 100s Get:104 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-cycler all 0.12.1-2 [9850 B] 100s Get:105 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-decorator all 5.2.1-2 [28.1 kB] 100s Get:106 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-platformdirs all 4.3.7-1 [16.9 kB] 100s Get:107 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-fs all 2.4.16-9ubuntu1 [91.5 kB] 100s Get:108 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-lxml ppc64el 6.0.2-1 [2452 kB] 101s Get:109 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-lz4 ppc64el 4.4.4+dfsg-3 [28.9 kB] 101s Get:110 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-scipy ppc64el 1.15.3-1ubuntu1 [22.0 MB] 109s Get:111 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-mpmath all 1.3.0-2 [423 kB] 109s Get:112 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-sympy all 1.14.0-2 [4306 kB] 110s Get:113 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-ufolib2 all 0.17.1+dfsg1-1 [33.5 kB] 110s Get:114 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-zopfli ppc64el 0.4.0-1 [11.3 kB] 110s Get:115 http://ftpmaster.internal/ubuntu resolute/universe ppc64el unicode-data all 16.0.0-1 [9513 kB] 114s Get:116 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-fonttools ppc64el 4.57.0-2build1 [1745 kB] 115s Get:117 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-iniconfig all 2.1.0-1 [6840 B] 115s Get:118 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-kiwisolver ppc64el 1.4.10~rc0-1 [72.4 kB] 115s Get:119 http://ftpmaster.internal/ubuntu resolute/main ppc64el libopenjp2-7 ppc64el 2.5.3-2.1 [251 kB] 115s Get:120 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-pil ppc64el 11.3.0-1ubuntu2 [654 kB] 115s Get:121 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.14-tk ppc64el 3.14.0-4 [109 kB] 115s Get:122 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3.13-tk ppc64el 3.13.9-1 [108 kB] 115s Get:123 http://ftpmaster.internal/ubuntu resolute/main ppc64el python3-tk ppc64el 3.13.9-1 [8948 B] 115s Get:124 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pil.imagetk ppc64el 11.3.0-1ubuntu2 [10.3 kB] 115s Get:125 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-matplotlib ppc64el 3.10.7+dfsg1-1 [17.2 MB] 121s Get:126 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pluggy all 1.6.0-1 [21.0 kB] 121s Get:127 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pytest all 8.3.5-2 [252 kB] 121s Get:128 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-hotkeys all 0.2.0-1 [13.3 kB] 121s Get:129 http://ftpmaster.internal/ubuntu resolute/universe ppc64el libjs-jquery-isonscreen all 1.2.0-1.1 [3244 B] 121s Get:130 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pytest-cov all 5.0.0-1 [21.3 kB] 121s Get:131 http://ftpmaster.internal/ubuntu resolute/universe ppc64el python3-pytest-rerunfailures all 16.1-1 [14.9 kB] 121s Fetched 154 MB in 44s (3531 kB/s) 121s Selecting previously unselected package python3-numpy-dev:ppc64el. 121s (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 ... 81022 files and directories currently installed.) 121s Preparing to unpack .../000-python3-numpy-dev_1%3a2.2.4+ds-1ubuntu1_ppc64el.deb ... 122s Unpacking python3-numpy-dev:ppc64el (1:2.2.4+ds-1ubuntu1) ... 122s Selecting previously unselected package libblas3:ppc64el. 122s Preparing to unpack .../001-libblas3_3.12.1-7_ppc64el.deb ... 122s Unpacking libblas3:ppc64el (3.12.1-7) ... 122s Selecting previously unselected package libgfortran5:ppc64el. 122s Preparing to unpack .../002-libgfortran5_15.2.0-7ubuntu1_ppc64el.deb ... 122s Unpacking libgfortran5:ppc64el (15.2.0-7ubuntu1) ... 122s Selecting previously unselected package liblapack3:ppc64el. 122s Preparing to unpack .../003-liblapack3_3.12.1-7_ppc64el.deb ... 122s Unpacking liblapack3:ppc64el (3.12.1-7) ... 122s Selecting previously unselected package python3-numpy. 122s Preparing to unpack .../004-python3-numpy_1%3a2.2.4+ds-1ubuntu1_ppc64el.deb ... 122s Unpacking python3-numpy (1:2.2.4+ds-1ubuntu1) ... 122s Selecting previously unselected package libpython3.14-minimal:ppc64el. 122s Preparing to unpack .../005-libpython3.14-minimal_3.14.0-4_ppc64el.deb ... 122s Unpacking libpython3.14-minimal:ppc64el (3.14.0-4) ... 122s Selecting previously unselected package python3.14-minimal. 122s Preparing to unpack .../006-python3.14-minimal_3.14.0-4_ppc64el.deb ... 122s Unpacking python3.14-minimal (3.14.0-4) ... 122s Selecting previously unselected package m4. 122s Preparing to unpack .../007-m4_1.4.20-2_ppc64el.deb ... 122s Unpacking m4 (1.4.20-2) ... 122s Selecting previously unselected package autoconf. 122s Preparing to unpack .../008-autoconf_2.72-3.1ubuntu1_all.deb ... 122s Unpacking autoconf (2.72-3.1ubuntu1) ... 122s Selecting previously unselected package autotools-dev. 122s Preparing to unpack .../009-autotools-dev_20240727.1_all.deb ... 122s Unpacking autotools-dev (20240727.1) ... 122s Selecting previously unselected package automake. 122s Preparing to unpack .../010-automake_1%3a1.18.1-2_all.deb ... 122s Unpacking automake (1:1.18.1-2) ... 122s Selecting previously unselected package autopoint. 122s Preparing to unpack .../011-autopoint_0.23.2-1_all.deb ... 122s Unpacking autopoint (0.23.2-1) ... 122s Selecting previously unselected package libtcl8.6:ppc64el. 122s Preparing to unpack .../012-libtcl8.6_8.6.17+dfsg-1_ppc64el.deb ... 122s Unpacking libtcl8.6:ppc64el (8.6.17+dfsg-1) ... 122s Selecting previously unselected package fonts-dejavu-mono. 122s Preparing to unpack .../013-fonts-dejavu-mono_2.37-8_all.deb ... 122s Unpacking fonts-dejavu-mono (2.37-8) ... 122s Selecting previously unselected package fonts-dejavu-core. 122s Preparing to unpack .../014-fonts-dejavu-core_2.37-8_all.deb ... 122s Unpacking fonts-dejavu-core (2.37-8) ... 122s Selecting previously unselected package fontconfig-config. 122s Preparing to unpack .../015-fontconfig-config_2.15.0-2.3ubuntu1_ppc64el.deb ... 122s Unpacking fontconfig-config (2.15.0-2.3ubuntu1) ... 122s Selecting previously unselected package libfontconfig1:ppc64el. 122s Preparing to unpack .../016-libfontconfig1_2.15.0-2.3ubuntu1_ppc64el.deb ... 122s Unpacking libfontconfig1:ppc64el (2.15.0-2.3ubuntu1) ... 122s Selecting previously unselected package libxrender1:ppc64el. 122s Preparing to unpack .../017-libxrender1_1%3a0.9.12-1_ppc64el.deb ... 122s Unpacking libxrender1:ppc64el (1:0.9.12-1) ... 122s Selecting previously unselected package libxft2:ppc64el. 122s Preparing to unpack .../018-libxft2_2.3.6-1build1_ppc64el.deb ... 122s Unpacking libxft2:ppc64el (2.3.6-1build1) ... 122s Selecting previously unselected package x11-common. 122s Preparing to unpack .../019-x11-common_1%3a7.7+24ubuntu1_all.deb ... 122s Unpacking x11-common (1:7.7+24ubuntu1) ... 122s Selecting previously unselected package libxss1:ppc64el. 122s Preparing to unpack .../020-libxss1_1%3a1.2.3-1build3_ppc64el.deb ... 122s Unpacking libxss1:ppc64el (1:1.2.3-1build3) ... 122s Selecting previously unselected package libtk8.6:ppc64el. 122s Preparing to unpack .../021-libtk8.6_8.6.17-1_ppc64el.deb ... 122s Unpacking libtk8.6:ppc64el (8.6.17-1) ... 123s Selecting previously unselected package tk8.6-blt2.5. 123s Preparing to unpack .../022-tk8.6-blt2.5_2.5.3+dfsg-8_ppc64el.deb ... 123s Unpacking tk8.6-blt2.5 (2.5.3+dfsg-8) ... 123s Selecting previously unselected package blt. 123s Preparing to unpack .../023-blt_2.5.3+dfsg-8_ppc64el.deb ... 123s Unpacking blt (2.5.3+dfsg-8) ... 123s Selecting previously unselected package libisl23:ppc64el. 123s Preparing to unpack .../024-libisl23_0.27-1_ppc64el.deb ... 123s Unpacking libisl23:ppc64el (0.27-1) ... 123s Selecting previously unselected package libmpc3:ppc64el. 123s Preparing to unpack .../025-libmpc3_1.3.1-2_ppc64el.deb ... 123s Unpacking libmpc3:ppc64el (1.3.1-2) ... 123s Selecting previously unselected package cpp-15-powerpc64le-linux-gnu. 123s Preparing to unpack .../026-cpp-15-powerpc64le-linux-gnu_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking cpp-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package cpp-15. 123s Preparing to unpack .../027-cpp-15_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking cpp-15 (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package cpp-powerpc64le-linux-gnu. 123s Preparing to unpack .../028-cpp-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 123s Unpacking cpp-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 123s Selecting previously unselected package cpp. 123s Preparing to unpack .../029-cpp_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 123s Unpacking cpp (4:15.2.0-4ubuntu1) ... 123s Selecting previously unselected package libcc1-0:ppc64el. 123s Preparing to unpack .../030-libcc1-0_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking libcc1-0:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package libgomp1:ppc64el. 123s Preparing to unpack .../031-libgomp1_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking libgomp1:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package libitm1:ppc64el. 123s Preparing to unpack .../032-libitm1_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking libitm1:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package libasan8:ppc64el. 123s Preparing to unpack .../033-libasan8_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking libasan8:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package liblsan0:ppc64el. 123s Preparing to unpack .../034-liblsan0_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking liblsan0:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package libtsan2:ppc64el. 123s Preparing to unpack .../035-libtsan2_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking libtsan2:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package libubsan1:ppc64el. 123s Preparing to unpack .../036-libubsan1_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking libubsan1:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package libquadmath0:ppc64el. 123s Preparing to unpack .../037-libquadmath0_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking libquadmath0:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package libgcc-15-dev:ppc64el. 123s Preparing to unpack .../038-libgcc-15-dev_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking libgcc-15-dev:ppc64el (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package gcc-15-powerpc64le-linux-gnu. 123s Preparing to unpack .../039-gcc-15-powerpc64le-linux-gnu_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking gcc-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package gcc-15. 123s Preparing to unpack .../040-gcc-15_15.2.0-7ubuntu1_ppc64el.deb ... 123s Unpacking gcc-15 (15.2.0-7ubuntu1) ... 123s Selecting previously unselected package gcc-powerpc64le-linux-gnu. 123s Preparing to unpack .../041-gcc-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 123s Unpacking gcc-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 123s Selecting previously unselected package gcc. 124s Preparing to unpack .../042-gcc_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 124s Unpacking gcc (4:15.2.0-4ubuntu1) ... 124s Selecting previously unselected package libstdc++-15-dev:ppc64el. 124s Preparing to unpack .../043-libstdc++-15-dev_15.2.0-7ubuntu1_ppc64el.deb ... 124s Unpacking libstdc++-15-dev:ppc64el (15.2.0-7ubuntu1) ... 124s Selecting previously unselected package g++-15-powerpc64le-linux-gnu. 124s Preparing to unpack .../044-g++-15-powerpc64le-linux-gnu_15.2.0-7ubuntu1_ppc64el.deb ... 124s Unpacking g++-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 124s Selecting previously unselected package g++-15. 124s Preparing to unpack .../045-g++-15_15.2.0-7ubuntu1_ppc64el.deb ... 124s Unpacking g++-15 (15.2.0-7ubuntu1) ... 124s Selecting previously unselected package g++-powerpc64le-linux-gnu. 124s Preparing to unpack .../046-g++-powerpc64le-linux-gnu_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 124s Unpacking g++-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 124s Selecting previously unselected package g++. 124s Preparing to unpack .../047-g++_4%3a15.2.0-4ubuntu1_ppc64el.deb ... 124s Unpacking g++ (4:15.2.0-4ubuntu1) ... 124s Selecting previously unselected package build-essential. 124s Preparing to unpack .../048-build-essential_12.12ubuntu1_ppc64el.deb ... 124s Unpacking build-essential (12.12ubuntu1) ... 124s Selecting previously unselected package python3-wcwidth. 124s Preparing to unpack .../049-python3-wcwidth_0.2.13+dfsg1-1_all.deb ... 124s Unpacking python3-wcwidth (0.2.13+dfsg1-1) ... 124s Selecting previously unselected package python3-blessed. 124s Preparing to unpack .../050-python3-blessed_1.21.0-1_all.deb ... 124s Unpacking python3-blessed (1.21.0-1) ... 124s Selecting previously unselected package python3-pyout. 124s Preparing to unpack .../051-python3-pyout_0.8.1-1_all.deb ... 124s Unpacking python3-pyout (0.8.1-1) ... 124s Selecting previously unselected package con-duct. 124s Preparing to unpack .../052-con-duct_0.17.0-1_all.deb ... 124s Unpacking con-duct (0.17.0-1) ... 124s Selecting previously unselected package libdebhelper-perl. 124s Preparing to unpack .../053-libdebhelper-perl_13.24.2ubuntu1_all.deb ... 124s Unpacking libdebhelper-perl (13.24.2ubuntu1) ... 124s Selecting previously unselected package libtool. 124s Preparing to unpack .../054-libtool_2.5.4-7_all.deb ... 124s Unpacking libtool (2.5.4-7) ... 124s Selecting previously unselected package dh-autoreconf. 124s Preparing to unpack .../055-dh-autoreconf_21_all.deb ... 124s Unpacking dh-autoreconf (21) ... 124s Selecting previously unselected package libarchive-zip-perl. 124s Preparing to unpack .../056-libarchive-zip-perl_1.68-1_all.deb ... 124s Unpacking libarchive-zip-perl (1.68-1) ... 124s Selecting previously unselected package libfile-stripnondeterminism-perl. 124s Preparing to unpack .../057-libfile-stripnondeterminism-perl_1.15.0-1_all.deb ... 124s Unpacking libfile-stripnondeterminism-perl (1.15.0-1) ... 124s Selecting previously unselected package dh-strip-nondeterminism. 124s Preparing to unpack .../058-dh-strip-nondeterminism_1.15.0-1_all.deb ... 124s Unpacking dh-strip-nondeterminism (1.15.0-1) ... 124s Selecting previously unselected package debugedit. 124s Preparing to unpack .../059-debugedit_1%3a5.2-3_ppc64el.deb ... 124s Unpacking debugedit (1:5.2-3) ... 124s Selecting previously unselected package dwz. 124s Preparing to unpack .../060-dwz_0.16-2_ppc64el.deb ... 124s Unpacking dwz (0.16-2) ... 124s Selecting previously unselected package gettext. 124s Preparing to unpack .../061-gettext_0.23.2-1_ppc64el.deb ... 124s Unpacking gettext (0.23.2-1) ... 124s Selecting previously unselected package intltool-debian. 124s Preparing to unpack .../062-intltool-debian_0.35.0+20060710.6_all.deb ... 124s Unpacking intltool-debian (0.35.0+20060710.6) ... 124s Selecting previously unselected package po-debconf. 124s Preparing to unpack .../063-po-debconf_1.0.21+nmu1_all.deb ... 124s Unpacking po-debconf (1.0.21+nmu1) ... 124s Selecting previously unselected package debhelper. 124s Preparing to unpack .../064-debhelper_13.24.2ubuntu1_all.deb ... 124s Unpacking debhelper (13.24.2ubuntu1) ... 124s Selecting previously unselected package dh-python. 124s Preparing to unpack .../065-dh-python_6.20250414_all.deb ... 124s Unpacking dh-python (6.20250414) ... 124s Selecting previously unselected package fonts-lyx. 124s Preparing to unpack .../066-fonts-lyx_2.4.4-2_all.deb ... 124s Unpacking fonts-lyx (2.4.4-2) ... 124s Selecting previously unselected package help2man. 124s Preparing to unpack .../067-help2man_1.49.3_ppc64el.deb ... 124s Unpacking help2man (1.49.3) ... 124s Selecting previously unselected package libdeflate0:ppc64el. 124s Preparing to unpack .../068-libdeflate0_1.23-2_ppc64el.deb ... 124s Unpacking libdeflate0:ppc64el (1.23-2) ... 124s Selecting previously unselected package libgraphite2-3:ppc64el. 124s Preparing to unpack .../069-libgraphite2-3_1.3.14-2ubuntu1_ppc64el.deb ... 125s Unpacking libgraphite2-3:ppc64el (1.3.14-2ubuntu1) ... 125s Selecting previously unselected package libharfbuzz0b:ppc64el. 125s Preparing to unpack .../070-libharfbuzz0b_12.1.0-1_ppc64el.deb ... 125s Unpacking libharfbuzz0b:ppc64el (12.1.0-1) ... 125s Selecting previously unselected package libimagequant0:ppc64el. 125s Preparing to unpack .../071-libimagequant0_2.18.0-1build1_ppc64el.deb ... 125s Unpacking libimagequant0:ppc64el (2.18.0-1build1) ... 125s Selecting previously unselected package libjpeg-turbo8:ppc64el. 125s Preparing to unpack .../072-libjpeg-turbo8_2.1.5-4ubuntu2_ppc64el.deb ... 125s Unpacking libjpeg-turbo8:ppc64el (2.1.5-4ubuntu2) ... 125s Selecting previously unselected package libjpeg8:ppc64el. 125s Preparing to unpack .../073-libjpeg8_8c-2ubuntu11_ppc64el.deb ... 125s Unpacking libjpeg8:ppc64el (8c-2ubuntu11) ... 125s Selecting previously unselected package libjs-jquery. 125s Preparing to unpack .../074-libjs-jquery_3.6.1+dfsg+~3.5.14-1_all.deb ... 125s Unpacking libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 125s Selecting previously unselected package libjs-jquery-metadata. 125s Preparing to unpack .../075-libjs-jquery-metadata_12-4_all.deb ... 125s Unpacking libjs-jquery-metadata (12-4) ... 125s Selecting previously unselected package libjs-jquery-tablesorter. 125s Preparing to unpack .../076-libjs-jquery-tablesorter_1%3a2.31.3+dfsg1-4_all.deb ... 125s Unpacking libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 125s Selecting previously unselected package libjs-jquery-throttle-debounce. 125s Preparing to unpack .../077-libjs-jquery-throttle-debounce_1.1+dfsg.1-2_all.deb ... 125s Unpacking libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 125s Selecting previously unselected package liblcms2-2:ppc64el. 125s Preparing to unpack .../078-liblcms2-2_2.17-1_ppc64el.deb ... 125s Unpacking liblcms2-2:ppc64el (2.17-1) ... 125s Selecting previously unselected package liblerc4:ppc64el. 125s Preparing to unpack .../079-liblerc4_4.0.0+ds-5ubuntu1_ppc64el.deb ... 125s Unpacking liblerc4:ppc64el (4.0.0+ds-5ubuntu1) ... 125s Selecting previously unselected package libpython3.14-stdlib:ppc64el. 125s Preparing to unpack .../080-libpython3.14-stdlib_3.14.0-4_ppc64el.deb ... 125s Unpacking libpython3.14-stdlib:ppc64el (3.14.0-4) ... 125s Selecting previously unselected package libqhull-r8.0:ppc64el. 125s Preparing to unpack .../081-libqhull-r8.0_2020.2-7_ppc64el.deb ... 125s Unpacking libqhull-r8.0:ppc64el (2020.2-7) ... 125s Selecting previously unselected package libraqm0:ppc64el. 125s Preparing to unpack .../082-libraqm0_0.10.3-1_ppc64el.deb ... 125s Unpacking libraqm0:ppc64el (0.10.3-1) ... 125s Selecting previously unselected package libsharpyuv0:ppc64el. 125s Preparing to unpack .../083-libsharpyuv0_1.5.0-0.1_ppc64el.deb ... 125s Unpacking libsharpyuv0:ppc64el (1.5.0-0.1) ... 125s Selecting previously unselected package libjbig0:ppc64el. 125s Preparing to unpack .../084-libjbig0_2.1-6.1ubuntu2_ppc64el.deb ... 125s Unpacking libjbig0:ppc64el (2.1-6.1ubuntu2) ... 125s Selecting previously unselected package libwebp7:ppc64el. 125s Preparing to unpack .../085-libwebp7_1.5.0-0.1_ppc64el.deb ... 125s Unpacking libwebp7:ppc64el (1.5.0-0.1) ... 125s Selecting previously unselected package libtiff6:ppc64el. 125s Preparing to unpack .../086-libtiff6_4.7.0-3ubuntu3_ppc64el.deb ... 125s Unpacking libtiff6:ppc64el (4.7.0-3ubuntu3) ... 125s Selecting previously unselected package libwebpdemux2:ppc64el. 125s Preparing to unpack .../087-libwebpdemux2_1.5.0-0.1_ppc64el.deb ... 125s Unpacking libwebpdemux2:ppc64el (1.5.0-0.1) ... 125s Selecting previously unselected package libwebpmux3:ppc64el. 125s Preparing to unpack .../088-libwebpmux3_1.5.0-0.1_ppc64el.deb ... 125s Unpacking libwebpmux3:ppc64el (1.5.0-0.1) ... 125s Selecting previously unselected package libxslt1.1:ppc64el. 125s Preparing to unpack .../089-libxslt1.1_1.1.43-0.3_ppc64el.deb ... 125s Unpacking libxslt1.1:ppc64el (1.1.43-0.3) ... 125s Selecting previously unselected package libzopfli1. 125s Preparing to unpack .../090-libzopfli1_1.0.3-3_ppc64el.deb ... 125s Unpacking libzopfli1 (1.0.3-3) ... 125s Selecting previously unselected package pybuild-plugin-autopkgtest. 125s Preparing to unpack .../091-pybuild-plugin-autopkgtest_6.20250414_all.deb ... 125s Unpacking pybuild-plugin-autopkgtest (6.20250414) ... 125s Selecting previously unselected package python3-pyproject-hooks. 125s Preparing to unpack .../092-python3-pyproject-hooks_1.2.0-1_all.deb ... 125s Unpacking python3-pyproject-hooks (1.2.0-1) ... 125s Selecting previously unselected package python3-wheel. 125s Preparing to unpack .../093-python3-wheel_0.46.1-2_all.deb ... 125s Unpacking python3-wheel (0.46.1-2) ... 125s Selecting previously unselected package python3-build. 125s Preparing to unpack .../094-python3-build_1.2.2-4_all.deb ... 125s Unpacking python3-build (1.2.2-4) ... 125s Selecting previously unselected package python3-installer. 125s Preparing to unpack .../095-python3-installer_0.7.0+dfsg1-3_all.deb ... 125s Unpacking python3-installer (0.7.0+dfsg1-3) ... 125s Selecting previously unselected package pybuild-plugin-pyproject. 125s Preparing to unpack .../096-pybuild-plugin-pyproject_6.20250414_all.deb ... 125s Unpacking pybuild-plugin-pyproject (6.20250414) ... 125s Selecting previously unselected package python-matplotlib-data. 125s Preparing to unpack .../097-python-matplotlib-data_3.10.7+dfsg1-1_all.deb ... 125s Unpacking python-matplotlib-data (3.10.7+dfsg1-1) ... 125s Selecting previously unselected package python3.14. 125s Preparing to unpack .../098-python3.14_3.14.0-4_ppc64el.deb ... 125s Unpacking python3.14 (3.14.0-4) ... 125s Selecting previously unselected package python3-all. 125s Preparing to unpack .../099-python3-all_3.13.7-2_ppc64el.deb ... 125s Unpacking python3-all (3.13.7-2) ... 125s Selecting previously unselected package python3-brotli. 125s Preparing to unpack .../100-python3-brotli_1.1.0-2build6_ppc64el.deb ... 125s Unpacking python3-brotli (1.1.0-2build6) ... 125s Selecting previously unselected package python3-contourpy. 125s Preparing to unpack .../101-python3-contourpy_1.3.1-2_ppc64el.deb ... 125s Unpacking python3-contourpy (1.3.1-2) ... 125s Selecting previously unselected package python3-coverage. 125s Preparing to unpack .../102-python3-coverage_7.8.2+dfsg1-1_ppc64el.deb ... 125s Unpacking python3-coverage (7.8.2+dfsg1-1) ... 125s Selecting previously unselected package python3-cycler. 125s Preparing to unpack .../103-python3-cycler_0.12.1-2_all.deb ... 125s Unpacking python3-cycler (0.12.1-2) ... 125s Selecting previously unselected package python3-decorator. 125s Preparing to unpack .../104-python3-decorator_5.2.1-2_all.deb ... 125s Unpacking python3-decorator (5.2.1-2) ... 125s Selecting previously unselected package python3-platformdirs. 125s Preparing to unpack .../105-python3-platformdirs_4.3.7-1_all.deb ... 125s Unpacking python3-platformdirs (4.3.7-1) ... 125s Selecting previously unselected package python3-fs. 125s Preparing to unpack .../106-python3-fs_2.4.16-9ubuntu1_all.deb ... 125s Unpacking python3-fs (2.4.16-9ubuntu1) ... 125s Selecting previously unselected package python3-lxml:ppc64el. 125s Preparing to unpack .../107-python3-lxml_6.0.2-1_ppc64el.deb ... 125s Unpacking python3-lxml:ppc64el (6.0.2-1) ... 125s Selecting previously unselected package python3-lz4. 125s Preparing to unpack .../108-python3-lz4_4.4.4+dfsg-3_ppc64el.deb ... 125s Unpacking python3-lz4 (4.4.4+dfsg-3) ... 125s Selecting previously unselected package python3-scipy. 125s Preparing to unpack .../109-python3-scipy_1.15.3-1ubuntu1_ppc64el.deb ... 125s Unpacking python3-scipy (1.15.3-1ubuntu1) ... 126s Selecting previously unselected package python3-mpmath. 126s Preparing to unpack .../110-python3-mpmath_1.3.0-2_all.deb ... 126s Unpacking python3-mpmath (1.3.0-2) ... 126s Selecting previously unselected package python3-sympy. 126s Preparing to unpack .../111-python3-sympy_1.14.0-2_all.deb ... 126s Unpacking python3-sympy (1.14.0-2) ... 126s Selecting previously unselected package python3-ufolib2. 126s Preparing to unpack .../112-python3-ufolib2_0.17.1+dfsg1-1_all.deb ... 126s Unpacking python3-ufolib2 (0.17.1+dfsg1-1) ... 126s Selecting previously unselected package python3-zopfli. 126s Preparing to unpack .../113-python3-zopfli_0.4.0-1_ppc64el.deb ... 126s Unpacking python3-zopfli (0.4.0-1) ... 126s Selecting previously unselected package unicode-data. 126s Preparing to unpack .../114-unicode-data_16.0.0-1_all.deb ... 126s Unpacking unicode-data (16.0.0-1) ... 127s Selecting previously unselected package python3-fonttools. 127s Preparing to unpack .../115-python3-fonttools_4.57.0-2build1_ppc64el.deb ... 127s Unpacking python3-fonttools (4.57.0-2build1) ... 127s Selecting previously unselected package python3-iniconfig. 127s Preparing to unpack .../116-python3-iniconfig_2.1.0-1_all.deb ... 127s Unpacking python3-iniconfig (2.1.0-1) ... 127s Selecting previously unselected package python3-kiwisolver. 127s Preparing to unpack .../117-python3-kiwisolver_1.4.10~rc0-1_ppc64el.deb ... 127s Unpacking python3-kiwisolver (1.4.10~rc0-1) ... 127s Selecting previously unselected package libopenjp2-7:ppc64el. 127s Preparing to unpack .../118-libopenjp2-7_2.5.3-2.1_ppc64el.deb ... 127s Unpacking libopenjp2-7:ppc64el (2.5.3-2.1) ... 127s Selecting previously unselected package python3-pil:ppc64el. 127s Preparing to unpack .../119-python3-pil_11.3.0-1ubuntu2_ppc64el.deb ... 127s Unpacking python3-pil:ppc64el (11.3.0-1ubuntu2) ... 127s Selecting previously unselected package python3.14-tk. 127s Preparing to unpack .../120-python3.14-tk_3.14.0-4_ppc64el.deb ... 127s Unpacking python3.14-tk (3.14.0-4) ... 127s Selecting previously unselected package python3.13-tk. 127s Preparing to unpack .../121-python3.13-tk_3.13.9-1_ppc64el.deb ... 127s Unpacking python3.13-tk (3.13.9-1) ... 127s Selecting previously unselected package python3-tk:ppc64el. 127s Preparing to unpack .../122-python3-tk_3.13.9-1_ppc64el.deb ... 127s Unpacking python3-tk:ppc64el (3.13.9-1) ... 127s Selecting previously unselected package python3-pil.imagetk:ppc64el. 127s Preparing to unpack .../123-python3-pil.imagetk_11.3.0-1ubuntu2_ppc64el.deb ... 127s Unpacking python3-pil.imagetk:ppc64el (11.3.0-1ubuntu2) ... 127s Selecting previously unselected package python3-matplotlib. 127s Preparing to unpack .../124-python3-matplotlib_3.10.7+dfsg1-1_ppc64el.deb ... 127s Unpacking python3-matplotlib (3.10.7+dfsg1-1) ... 127s Selecting previously unselected package python3-pluggy. 127s Preparing to unpack .../125-python3-pluggy_1.6.0-1_all.deb ... 127s Unpacking python3-pluggy (1.6.0-1) ... 127s Selecting previously unselected package python3-pytest. 127s Preparing to unpack .../126-python3-pytest_8.3.5-2_all.deb ... 127s Unpacking python3-pytest (8.3.5-2) ... 127s Selecting previously unselected package libjs-jquery-hotkeys. 127s Preparing to unpack .../127-libjs-jquery-hotkeys_0.2.0-1_all.deb ... 127s Unpacking libjs-jquery-hotkeys (0.2.0-1) ... 127s Selecting previously unselected package libjs-jquery-isonscreen. 127s Preparing to unpack .../128-libjs-jquery-isonscreen_1.2.0-1.1_all.deb ... 127s Unpacking libjs-jquery-isonscreen (1.2.0-1.1) ... 127s Selecting previously unselected package python3-pytest-cov. 127s Preparing to unpack .../129-python3-pytest-cov_5.0.0-1_all.deb ... 127s Unpacking python3-pytest-cov (5.0.0-1) ... 127s Selecting previously unselected package python3-pytest-rerunfailures. 127s Preparing to unpack .../130-python3-pytest-rerunfailures_16.1-1_all.deb ... 127s Unpacking python3-pytest-rerunfailures (16.1-1) ... 127s Setting up dh-python (6.20250414) ... 128s Setting up libgraphite2-3:ppc64el (1.3.14-2ubuntu1) ... 128s Setting up liblcms2-2:ppc64el (2.17-1) ... 128s Setting up python3-iniconfig (2.1.0-1) ... 128s Setting up libsharpyuv0:ppc64el (1.5.0-0.1) ... 128s Setting up liblerc4:ppc64el (4.0.0+ds-5ubuntu1) ... 128s Setting up libxrender1:ppc64el (1:0.9.12-1) ... 128s Setting up python3-lz4 (4.4.4+dfsg-3) ... 128s Setting up libarchive-zip-perl (1.68-1) ... 128s Setting up fonts-lyx (2.4.4-2) ... 128s Setting up libdebhelper-perl (13.24.2ubuntu1) ... 128s Setting up libpython3.14-minimal:ppc64el (3.14.0-4) ... 128s Setting up x11-common (1:7.7+24ubuntu1) ... 128s Setting up libdeflate0:ppc64el (1.23-2) ... 128s Setting up m4 (1.4.20-2) ... 128s Setting up libqhull-r8.0:ppc64el (2020.2-7) ... 128s Setting up python3-coverage (7.8.2+dfsg1-1) ... 129s Setting up libjs-jquery-throttle-debounce (1.1+dfsg.1-2) ... 129s Setting up libgomp1:ppc64el (15.2.0-7ubuntu1) ... 129s Setting up python3-wheel (0.46.1-2) ... 129s Setting up libjbig0:ppc64el (2.1-6.1ubuntu2) ... 129s Setting up python3-platformdirs (4.3.7-1) ... 129s Setting up python3-fs (2.4.16-9ubuntu1) ... 129s Setting up help2man (1.49.3) ... 129s Setting up unicode-data (16.0.0-1) ... 129s Setting up python3-decorator (5.2.1-2) ... 130s Setting up autotools-dev (20240727.1) ... 130s Setting up libblas3:ppc64el (3.12.1-7) ... 130s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/blas/libblas.so.3 to provide /usr/lib/powerpc64le-linux-gnu/libblas.so.3 (libblas.so.3-powerpc64le-linux-gnu) in auto mode 130s Setting up python3-wcwidth (0.2.13+dfsg1-1) ... 130s Setting up python3-pyproject-hooks (1.2.0-1) ... 130s Setting up libzopfli1 (1.0.3-3) ... 130s Setting up python3-brotli (1.1.0-2build6) ... 130s Setting up libquadmath0:ppc64el (15.2.0-7ubuntu1) ... 130s Setting up python3-cycler (0.12.1-2) ... 130s Setting up libimagequant0:ppc64el (2.18.0-1build1) ... 130s Setting up fonts-dejavu-mono (2.37-8) ... 130s Setting up python3-kiwisolver (1.4.10~rc0-1) ... 130s Setting up libmpc3:ppc64el (1.3.1-2) ... 130s Setting up python3-numpy-dev:ppc64el (1:2.2.4+ds-1ubuntu1) ... 130s Setting up libtcl8.6:ppc64el (8.6.17+dfsg-1) ... 130s Setting up autopoint (0.23.2-1) ... 130s Setting up fonts-dejavu-core (2.37-8) ... 130s Setting up libjpeg-turbo8:ppc64el (2.1.5-4ubuntu2) ... 130s Setting up python3-installer (0.7.0+dfsg1-3) ... 131s Setting up libgfortran5:ppc64el (15.2.0-7ubuntu1) ... 131s Setting up autoconf (2.72-3.1ubuntu1) ... 131s Setting up python3-pluggy (1.6.0-1) ... 131s Setting up libwebp7:ppc64el (1.5.0-0.1) ... 131s Setting up libubsan1:ppc64el (15.2.0-7ubuntu1) ... 131s Setting up dwz (0.16-2) ... 131s Setting up libasan8:ppc64el (15.2.0-7ubuntu1) ... 131s Setting up libxslt1.1:ppc64el (1.1.43-0.3) ... 131s Setting up debugedit (1:5.2-3) ... 131s Setting up libopenjp2-7:ppc64el (2.5.3-2.1) ... 131s Setting up libharfbuzz0b:ppc64el (12.1.0-1) ... 131s Setting up libxss1:ppc64el (1:1.2.3-1build3) ... 131s Setting up libtsan2:ppc64el (15.2.0-7ubuntu1) ... 131s Setting up libjs-jquery (3.6.1+dfsg+~3.5.14-1) ... 131s Setting up python3-mpmath (1.3.0-2) ... 132s Setting up libjs-jquery-hotkeys (0.2.0-1) ... 132s Setting up libisl23:ppc64el (0.27-1) ... 132s Setting up python3-build (1.2.2-4) ... 132s Setting up python-matplotlib-data (3.10.7+dfsg1-1) ... 132s Setting up libwebpmux3:ppc64el (1.5.0-0.1) ... 132s Setting up python3.14-minimal (3.14.0-4) ... 133s Setting up libcc1-0:ppc64el (15.2.0-7ubuntu1) ... 133s Setting up liblsan0:ppc64el (15.2.0-7ubuntu1) ... 133s Setting up libitm1:ppc64el (15.2.0-7ubuntu1) ... 133s Setting up libjpeg8:ppc64el (8c-2ubuntu11) ... 133s Setting up automake (1:1.18.1-2) ... 133s update-alternatives: using /usr/bin/automake-1.18 to provide /usr/bin/automake (automake) in auto mode 133s Setting up libfile-stripnondeterminism-perl (1.15.0-1) ... 133s Setting up python3-sympy (1.14.0-2) ... 145s /usr/lib/python3/dist-packages/sympy/testing/runtests.py:283: SyntaxWarning: 'return' in a 'finally' block 145s return p.returncode 145s Setting up liblapack3:ppc64el (3.12.1-7) ... 145s update-alternatives: using /usr/lib/powerpc64le-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/powerpc64le-linux-gnu/liblapack.so.3 (liblapack.so.3-powerpc64le-linux-gnu) in auto mode 145s Setting up gettext (0.23.2-1) ... 145s Setting up libgcc-15-dev:ppc64el (15.2.0-7ubuntu1) ... 145s Setting up libpython3.14-stdlib:ppc64el (3.14.0-4) ... 145s Setting up pybuild-plugin-pyproject (6.20250414) ... 145s Setting up fontconfig-config (2.15.0-2.3ubuntu1) ... 145s Setting up python3-pytest (8.3.5-2) ... 146s Setting up libwebpdemux2:ppc64el (1.5.0-0.1) ... 146s Setting up python3-blessed (1.21.0-1) ... 146s Setting up python3-zopfli (0.4.0-1) ... 146s Setting up intltool-debian (0.35.0+20060710.6) ... 146s Setting up cpp-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 146s Setting up libstdc++-15-dev:ppc64el (15.2.0-7ubuntu1) ... 146s Setting up libjs-jquery-metadata (12-4) ... 146s Setting up libraqm0:ppc64el (0.10.3-1) ... 146s Setting up libjs-jquery-isonscreen (1.2.0-1.1) ... 146s Setting up python3-numpy (1:2.2.4+ds-1ubuntu1) ... 150s Setting up dh-strip-nondeterminism (1.15.0-1) ... 150s Setting up libjs-jquery-tablesorter (1:2.31.3+dfsg1-4) ... 150s Setting up cpp-15 (15.2.0-7ubuntu1) ... 150s Setting up python3-lxml:ppc64el (6.0.2-1) ... 150s Setting up libtiff6:ppc64el (4.7.0-3ubuntu3) ... 150s Setting up python3-contourpy (1.3.1-2) ... 150s Setting up libfontconfig1:ppc64el (2.15.0-2.3ubuntu1) ... 150s Setting up python3.14 (3.14.0-4) ... 151s Setting up cpp-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 151s Setting up python3-pytest-rerunfailures (16.1-1) ... 151s Setting up libxft2:ppc64el (2.3.6-1build1) ... 151s Setting up python3-scipy (1.15.3-1ubuntu1) ... 156s /usr/lib/python3/dist-packages/scipy/optimize/_optimize.py:921: SyntaxWarning: 'break' in a 'finally' block 156s break 158s Setting up python3-pyout (0.8.1-1) ... 159s Setting up gcc-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 159s Setting up po-debconf (1.0.21+nmu1) ... 159s Setting up libtk8.6:ppc64el (8.6.17-1) ... 159s Setting up python3-all (3.13.7-2) ... 159s Setting up python3-pytest-cov (5.0.0-1) ... 159s Setting up python3.13-tk (3.13.9-1) ... 159s Setting up con-duct (0.17.0-1) ... 159s Setting up python3-pil:ppc64el (11.3.0-1ubuntu2) ... 160s Setting up gcc-15 (15.2.0-7ubuntu1) ... 160s Setting up gcc-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 160s Setting up cpp (4:15.2.0-4ubuntu1) ... 160s Setting up g++-15-powerpc64le-linux-gnu (15.2.0-7ubuntu1) ... 160s Setting up tk8.6-blt2.5 (2.5.3+dfsg-8) ... 160s Setting up python3.14-tk (3.14.0-4) ... 160s Setting up libtool (2.5.4-7) ... 160s Setting up blt (2.5.3+dfsg-8) ... 160s Setting up python3-tk:ppc64el (3.13.9-1) ... 160s Setting up gcc (4:15.2.0-4ubuntu1) ... 160s Setting up dh-autoreconf (21) ... 160s Setting up python3-pil.imagetk:ppc64el (11.3.0-1ubuntu2) ... 160s Setting up g++-15 (15.2.0-7ubuntu1) ... 160s Setting up g++-powerpc64le-linux-gnu (4:15.2.0-4ubuntu1) ... 160s Setting up debhelper (13.24.2ubuntu1) ... 160s Setting up g++ (4:15.2.0-4ubuntu1) ... 160s update-alternatives: using /usr/bin/g++ to provide /usr/bin/c++ (c++) in auto mode 160s Setting up build-essential (12.12ubuntu1) ... 160s Setting up pybuild-plugin-autopkgtest (6.20250414) ... 160s Setting up python3-fonttools (4.57.0-2build1) ... 162s Setting up python3-ufolib2 (0.17.1+dfsg1-1) ... 162s Setting up python3-matplotlib (3.10.7+dfsg1-1) ... 165s Processing triggers for libc-bin (2.42-2ubuntu2) ... 165s Processing triggers for systemd (257.9-0ubuntu2) ... 165s Processing triggers for man-db (2.13.1-1) ... 166s Processing triggers for install-info (7.2-5) ... 167s autopkgtest [12:07:27]: test pybuild-autopkgtest: pybuild-autopkgtest 167s autopkgtest [12:07:27]: test pybuild-autopkgtest: [----------------------- 168s pybuild-autopkgtest 168s I: pybuild pybuild:308: chmod +x /tmp/autopkgtest.7X1snJ/build.Rrh/src/test/data/spawn_children.sh 168s I: pybuild base:311: cd /tmp/autopkgtest.7X1snJ/autopkgtest_tmp/build; python3.14 -m pytest test 169s ============================= test session starts ============================== 169s platform linux -- Python 3.14.0, pytest-8.3.5, pluggy-1.6.0 169s rootdir: /tmp/autopkgtest.7X1snJ/autopkgtest_tmp/build 169s configfile: pyproject.toml 169s plugins: cov-5.0.0, rerunfailures-16.1, typeguard-4.4.2 169s collected 289 items 169s 169s test/test_aggregation.py .............. [ 4%] 170s test/test_arg_parsing.py .............. [ 9%] 182s test/test_e2e.py ................ [ 15%] 201s test/test_execution.py .......................... [ 24%] 201s test/test_formatter.py ................................................. [ 41%] 201s ......... [ 44%] 201s test/test_log_paths.py .............. [ 49%] 201s test/test_ls.py ............ [ 53%] 202s test/test_plot_humanization.py FFFFFFFFFFFFFFFFFFFFFFF [ 61%] 202s test/test_prepare_outputs.py ................ [ 66%] 202s test/test_report.py ........................ [ 75%] 202s test/test_schema.py . [ 75%] 204s test/test_suite.py .............FFFFF.FFF.......... [ 86%] 207s test/test_tailpipe.py ............... [ 91%] 207s test/test_utils.py ........... [ 95%] 207s test/test_validation.py ............. [100%] 207s 207s =================================== FAILURES =================================== 207s __________________ test_pick_unit_with_varying_ratios[-1-2-s] __________________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s > from numpy.__config__ import show_config 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 207s from numpy._core._multiarray_umath import ( 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s from . import multiarray 207s except ImportError as exc: 207s import sys 207s msg = """ 207s 207s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s 207s Importing the numpy C-extensions failed. This error can happen for 207s many reasons, often due to issues with your setup or how NumPy was 207s installed. 207s 207s We have compiled some common reasons and troubleshooting tips at: 207s 207s https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s 207s Please note and check the following: 207s 207s * The Python version is: Python%d.%d from "%s" 207s * The NumPy version is: "%s" 207s 207s and make sure that they are the versions you expect. 207s Please carefully study the documentation linked above for further help. 207s 207s Original error was: %s 207s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 207s __version__, exc) 207s > raise ImportError(msg) 207s E ImportError: 207s E 207s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s E 207s E Importing the numpy C-extensions failed. This error can happen for 207s E many reasons, often due to issues with your setup or how NumPy was 207s E installed. 207s E 207s E We have compiled some common reasons and troubleshooting tips at: 207s E 207s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s E 207s E Please note and check the following: 207s E 207s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 207s E * The NumPy version is: "2.2.4" 207s E 207s E and make sure that they are the versions you expect. 207s E Please carefully study the documentation linked above for further help. 207s E 207s E Original error was: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 207s 207s The above exception was the direct cause of the following exception: 207s 207s min_ratio = -1, span_seconds = 2, expected_unit = 's' 207s 207s @pytest.mark.parametrize( 207s "min_ratio,span_seconds,expected_unit", 207s [ 207s # min_ratio=-1: always use base unit 207s (-1, 2, "s"), # Small value 207s (-1, 3700, "s"), # More than 1 hour - still base unit 207s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 207s # min_ratio=1.5: switch units more aggressively 207s (1.5, 90, "min"), # 1.5 minutes meets threshold 207s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 207s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 207s # min_ratio=3.0: standard threshold 207s (3.0, 2, "s"), # 2 seconds - stays in base unit 207s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 207s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 207s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 207s # min_ratio=5.0: more conservative switching 207s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 207s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 207s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 207s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 207s ], 207s ) 207s def test_pick_unit_with_varying_ratios( 207s min_ratio: float, span_seconds: float, expected_unit: str 207s ) -> None: 207s """Test pick_unit selects appropriate unit based on min_ratio.""" 207s > formatter: Any = plot.HumanizedAxisFormatter( 207s min_ratio=min_ratio, units=plot._TIME_UNITS 207s ) 207s 207s test/test_plot_humanization.py:36: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 207s from matplotlib.ticker import Formatter 207s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 207s from . import _api, _version, cbook, _docstring, rcsetup 207s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 207s import numpy as np 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s from numpy.__config__ import show_config 207s except ImportError as e: 207s msg = """Error importing numpy: you should not try to import numpy from 207s its source directory; please exit the numpy source tree, and relaunch 207s your python interpreter from there.""" 207s > raise ImportError(msg) from e 207s E ImportError: Error importing numpy: you should not try to import numpy from 207s E its source directory; please exit the numpy source tree, and relaunch 207s E your python interpreter from there. 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 207s ________________ test_pick_unit_with_varying_ratios[-1-3700-s] _________________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s > from numpy.__config__ import show_config 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 207s from numpy._core._multiarray_umath import ( 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s from . import multiarray 207s except ImportError as exc: 207s import sys 207s msg = """ 207s 207s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s 207s Importing the numpy C-extensions failed. This error can happen for 207s many reasons, often due to issues with your setup or how NumPy was 207s installed. 207s 207s We have compiled some common reasons and troubleshooting tips at: 207s 207s https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s 207s Please note and check the following: 207s 207s * The Python version is: Python%d.%d from "%s" 207s * The NumPy version is: "%s" 207s 207s and make sure that they are the versions you expect. 207s Please carefully study the documentation linked above for further help. 207s 207s Original error was: %s 207s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 207s __version__, exc) 207s > raise ImportError(msg) 207s E ImportError: 207s E 207s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s E 207s E Importing the numpy C-extensions failed. This error can happen for 207s E many reasons, often due to issues with your setup or how NumPy was 207s E installed. 207s E 207s E We have compiled some common reasons and troubleshooting tips at: 207s E 207s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s E 207s E Please note and check the following: 207s E 207s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 207s E * The NumPy version is: "2.2.4" 207s E 207s E and make sure that they are the versions you expect. 207s E Please carefully study the documentation linked above for further help. 207s E 207s E Original error was: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 207s 207s The above exception was the direct cause of the following exception: 207s 207s min_ratio = -1, span_seconds = 3700, expected_unit = 's' 207s 207s @pytest.mark.parametrize( 207s "min_ratio,span_seconds,expected_unit", 207s [ 207s # min_ratio=-1: always use base unit 207s (-1, 2, "s"), # Small value 207s (-1, 3700, "s"), # More than 1 hour - still base unit 207s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 207s # min_ratio=1.5: switch units more aggressively 207s (1.5, 90, "min"), # 1.5 minutes meets threshold 207s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 207s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 207s # min_ratio=3.0: standard threshold 207s (3.0, 2, "s"), # 2 seconds - stays in base unit 207s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 207s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 207s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 207s # min_ratio=5.0: more conservative switching 207s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 207s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 207s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 207s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 207s ], 207s ) 207s def test_pick_unit_with_varying_ratios( 207s min_ratio: float, span_seconds: float, expected_unit: str 207s ) -> None: 207s """Test pick_unit selects appropriate unit based on min_ratio.""" 207s > formatter: Any = plot.HumanizedAxisFormatter( 207s min_ratio=min_ratio, units=plot._TIME_UNITS 207s ) 207s 207s test/test_plot_humanization.py:36: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 207s from matplotlib.ticker import Formatter 207s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 207s from . import _api, _version, cbook, _docstring, rcsetup 207s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 207s import numpy as np 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s from numpy.__config__ import show_config 207s except ImportError as e: 207s msg = """Error importing numpy: you should not try to import numpy from 207s its source directory; please exit the numpy source tree, and relaunch 207s your python interpreter from there.""" 207s > raise ImportError(msg) from e 207s E ImportError: Error importing numpy: you should not try to import numpy from 207s E its source directory; please exit the numpy source tree, and relaunch 207s E your python interpreter from there. 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 207s _______________ test_pick_unit_with_varying_ratios[-1-259200-s] ________________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s > from numpy.__config__ import show_config 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 207s from numpy._core._multiarray_umath import ( 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s from . import multiarray 207s except ImportError as exc: 207s import sys 207s msg = """ 207s 207s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s 207s Importing the numpy C-extensions failed. This error can happen for 207s many reasons, often due to issues with your setup or how NumPy was 207s installed. 207s 207s We have compiled some common reasons and troubleshooting tips at: 207s 207s https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s 207s Please note and check the following: 207s 207s * The Python version is: Python%d.%d from "%s" 207s * The NumPy version is: "%s" 207s 207s and make sure that they are the versions you expect. 207s Please carefully study the documentation linked above for further help. 207s 207s Original error was: %s 207s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 207s __version__, exc) 207s > raise ImportError(msg) 207s E ImportError: 207s E 207s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s E 207s E Importing the numpy C-extensions failed. This error can happen for 207s E many reasons, often due to issues with your setup or how NumPy was 207s E installed. 207s E 207s E We have compiled some common reasons and troubleshooting tips at: 207s E 207s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s E 207s E Please note and check the following: 207s E 207s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 207s E * The NumPy version is: "2.2.4" 207s E 207s E and make sure that they are the versions you expect. 207s E Please carefully study the documentation linked above for further help. 207s E 207s E Original error was: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 207s 207s The above exception was the direct cause of the following exception: 207s 207s min_ratio = -1, span_seconds = 259200, expected_unit = 's' 207s 207s @pytest.mark.parametrize( 207s "min_ratio,span_seconds,expected_unit", 207s [ 207s # min_ratio=-1: always use base unit 207s (-1, 2, "s"), # Small value 207s (-1, 3700, "s"), # More than 1 hour - still base unit 207s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 207s # min_ratio=1.5: switch units more aggressively 207s (1.5, 90, "min"), # 1.5 minutes meets threshold 207s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 207s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 207s # min_ratio=3.0: standard threshold 207s (3.0, 2, "s"), # 2 seconds - stays in base unit 207s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 207s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 207s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 207s # min_ratio=5.0: more conservative switching 207s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 207s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 207s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 207s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 207s ], 207s ) 207s def test_pick_unit_with_varying_ratios( 207s min_ratio: float, span_seconds: float, expected_unit: str 207s ) -> None: 207s """Test pick_unit selects appropriate unit based on min_ratio.""" 207s > formatter: Any = plot.HumanizedAxisFormatter( 207s min_ratio=min_ratio, units=plot._TIME_UNITS 207s ) 207s 207s test/test_plot_humanization.py:36: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 207s from matplotlib.ticker import Formatter 207s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 207s from . import _api, _version, cbook, _docstring, rcsetup 207s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 207s import numpy as np 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s from numpy.__config__ import show_config 207s except ImportError as e: 207s msg = """Error importing numpy: you should not try to import numpy from 207s its source directory; please exit the numpy source tree, and relaunch 207s your python interpreter from there.""" 207s > raise ImportError(msg) from e 207s E ImportError: Error importing numpy: you should not try to import numpy from 207s E its source directory; please exit the numpy source tree, and relaunch 207s E your python interpreter from there. 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 207s ________________ test_pick_unit_with_varying_ratios[1.5-90-min] ________________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s > from numpy.__config__ import show_config 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 207s from numpy._core._multiarray_umath import ( 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s from . import multiarray 207s except ImportError as exc: 207s import sys 207s msg = """ 207s 207s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s 207s Importing the numpy C-extensions failed. This error can happen for 207s many reasons, often due to issues with your setup or how NumPy was 207s installed. 207s 207s We have compiled some common reasons and troubleshooting tips at: 207s 207s https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s 207s Please note and check the following: 207s 207s * The Python version is: Python%d.%d from "%s" 207s * The NumPy version is: "%s" 207s 207s and make sure that they are the versions you expect. 207s Please carefully study the documentation linked above for further help. 207s 207s Original error was: %s 207s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 207s __version__, exc) 207s > raise ImportError(msg) 207s E ImportError: 207s E 207s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s E 207s E Importing the numpy C-extensions failed. This error can happen for 207s E many reasons, often due to issues with your setup or how NumPy was 207s E installed. 207s E 207s E We have compiled some common reasons and troubleshooting tips at: 207s E 207s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s E 207s E Please note and check the following: 207s E 207s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 207s E * The NumPy version is: "2.2.4" 207s E 207s E and make sure that they are the versions you expect. 207s E Please carefully study the documentation linked above for further help. 207s E 207s E Original error was: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 207s 207s The above exception was the direct cause of the following exception: 207s 207s min_ratio = 1.5, span_seconds = 90, expected_unit = 'min' 207s 207s @pytest.mark.parametrize( 207s "min_ratio,span_seconds,expected_unit", 207s [ 207s # min_ratio=-1: always use base unit 207s (-1, 2, "s"), # Small value 207s (-1, 3700, "s"), # More than 1 hour - still base unit 207s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 207s # min_ratio=1.5: switch units more aggressively 207s (1.5, 90, "min"), # 1.5 minutes meets threshold 207s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 207s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 207s # min_ratio=3.0: standard threshold 207s (3.0, 2, "s"), # 2 seconds - stays in base unit 207s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 207s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 207s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 207s # min_ratio=5.0: more conservative switching 207s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 207s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 207s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 207s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 207s ], 207s ) 207s def test_pick_unit_with_varying_ratios( 207s min_ratio: float, span_seconds: float, expected_unit: str 207s ) -> None: 207s """Test pick_unit selects appropriate unit based on min_ratio.""" 207s > formatter: Any = plot.HumanizedAxisFormatter( 207s min_ratio=min_ratio, units=plot._TIME_UNITS 207s ) 207s 207s test/test_plot_humanization.py:36: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 207s from matplotlib.ticker import Formatter 207s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 207s from . import _api, _version, cbook, _docstring, rcsetup 207s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 207s import numpy as np 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s from numpy.__config__ import show_config 207s except ImportError as e: 207s msg = """Error importing numpy: you should not try to import numpy from 207s its source directory; please exit the numpy source tree, and relaunch 207s your python interpreter from there.""" 207s > raise ImportError(msg) from e 207s E ImportError: Error importing numpy: you should not try to import numpy from 207s E its source directory; please exit the numpy source tree, and relaunch 207s E your python interpreter from there. 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 207s ________________ test_pick_unit_with_varying_ratios[1.5-5400-h] ________________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s > from numpy.__config__ import show_config 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 207s from numpy._core._multiarray_umath import ( 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s from . import multiarray 207s except ImportError as exc: 207s import sys 207s msg = """ 207s 207s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s 207s Importing the numpy C-extensions failed. This error can happen for 207s many reasons, often due to issues with your setup or how NumPy was 207s installed. 207s 207s We have compiled some common reasons and troubleshooting tips at: 207s 207s https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s 207s Please note and check the following: 207s 207s * The Python version is: Python%d.%d from "%s" 207s * The NumPy version is: "%s" 207s 207s and make sure that they are the versions you expect. 207s Please carefully study the documentation linked above for further help. 207s 207s Original error was: %s 207s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 207s __version__, exc) 207s > raise ImportError(msg) 207s E ImportError: 207s E 207s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s E 207s E Importing the numpy C-extensions failed. This error can happen for 207s E many reasons, often due to issues with your setup or how NumPy was 207s E installed. 207s E 207s E We have compiled some common reasons and troubleshooting tips at: 207s E 207s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s E 207s E Please note and check the following: 207s E 207s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 207s E * The NumPy version is: "2.2.4" 207s E 207s E and make sure that they are the versions you expect. 207s E Please carefully study the documentation linked above for further help. 207s E 207s E Original error was: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 207s 207s The above exception was the direct cause of the following exception: 207s 207s min_ratio = 1.5, span_seconds = 5400, expected_unit = 'h' 207s 207s @pytest.mark.parametrize( 207s "min_ratio,span_seconds,expected_unit", 207s [ 207s # min_ratio=-1: always use base unit 207s (-1, 2, "s"), # Small value 207s (-1, 3700, "s"), # More than 1 hour - still base unit 207s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 207s # min_ratio=1.5: switch units more aggressively 207s (1.5, 90, "min"), # 1.5 minutes meets threshold 207s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 207s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 207s # min_ratio=3.0: standard threshold 207s (3.0, 2, "s"), # 2 seconds - stays in base unit 207s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 207s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 207s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 207s # min_ratio=5.0: more conservative switching 207s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 207s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 207s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 207s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 207s ], 207s ) 207s def test_pick_unit_with_varying_ratios( 207s min_ratio: float, span_seconds: float, expected_unit: str 207s ) -> None: 207s """Test pick_unit selects appropriate unit based on min_ratio.""" 207s > formatter: Any = plot.HumanizedAxisFormatter( 207s min_ratio=min_ratio, units=plot._TIME_UNITS 207s ) 207s 207s test/test_plot_humanization.py:36: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 207s from matplotlib.ticker import Formatter 207s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 207s from . import _api, _version, cbook, _docstring, rcsetup 207s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 207s import numpy as np 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s from numpy.__config__ import show_config 207s except ImportError as e: 207s msg = """Error importing numpy: you should not try to import numpy from 207s its source directory; please exit the numpy source tree, and relaunch 207s your python interpreter from there.""" 207s > raise ImportError(msg) from e 207s E ImportError: Error importing numpy: you should not try to import numpy from 207s E its source directory; please exit the numpy source tree, and relaunch 207s E your python interpreter from there. 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 207s _______________ test_pick_unit_with_varying_ratios[1.5-129600-d] _______________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s > from numpy.__config__ import show_config 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 207s from numpy._core._multiarray_umath import ( 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s from . import multiarray 207s except ImportError as exc: 207s import sys 207s msg = """ 207s 207s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s 207s Importing the numpy C-extensions failed. This error can happen for 207s many reasons, often due to issues with your setup or how NumPy was 207s installed. 207s 207s We have compiled some common reasons and troubleshooting tips at: 207s 207s https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s 207s Please note and check the following: 207s 207s * The Python version is: Python%d.%d from "%s" 207s * The NumPy version is: "%s" 207s 207s and make sure that they are the versions you expect. 207s Please carefully study the documentation linked above for further help. 207s 207s Original error was: %s 207s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 207s __version__, exc) 207s > raise ImportError(msg) 207s E ImportError: 207s E 207s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s E 207s E Importing the numpy C-extensions failed. This error can happen for 207s E many reasons, often due to issues with your setup or how NumPy was 207s E installed. 207s E 207s E We have compiled some common reasons and troubleshooting tips at: 207s E 207s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s E 207s E Please note and check the following: 207s E 207s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 207s E * The NumPy version is: "2.2.4" 207s E 207s E and make sure that they are the versions you expect. 207s E Please carefully study the documentation linked above for further help. 207s E 207s E Original error was: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 207s 207s The above exception was the direct cause of the following exception: 207s 207s min_ratio = 1.5, span_seconds = 129600, expected_unit = 'd' 207s 207s @pytest.mark.parametrize( 207s "min_ratio,span_seconds,expected_unit", 207s [ 207s # min_ratio=-1: always use base unit 207s (-1, 2, "s"), # Small value 207s (-1, 3700, "s"), # More than 1 hour - still base unit 207s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 207s # min_ratio=1.5: switch units more aggressively 207s (1.5, 90, "min"), # 1.5 minutes meets threshold 207s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 207s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 207s # min_ratio=3.0: standard threshold 207s (3.0, 2, "s"), # 2 seconds - stays in base unit 207s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 207s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 207s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 207s # min_ratio=5.0: more conservative switching 207s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 207s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 207s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 207s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 207s ], 207s ) 207s def test_pick_unit_with_varying_ratios( 207s min_ratio: float, span_seconds: float, expected_unit: str 207s ) -> None: 207s """Test pick_unit selects appropriate unit based on min_ratio.""" 207s > formatter: Any = plot.HumanizedAxisFormatter( 207s min_ratio=min_ratio, units=plot._TIME_UNITS 207s ) 207s 207s test/test_plot_humanization.py:36: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 207s from matplotlib.ticker import Formatter 207s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 207s from . import _api, _version, cbook, _docstring, rcsetup 207s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 207s import numpy as np 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s from numpy.__config__ import show_config 207s except ImportError as e: 207s msg = """Error importing numpy: you should not try to import numpy from 207s its source directory; please exit the numpy source tree, and relaunch 207s your python interpreter from there.""" 207s > raise ImportError(msg) from e 207s E ImportError: Error importing numpy: you should not try to import numpy from 207s E its source directory; please exit the numpy source tree, and relaunch 207s E your python interpreter from there. 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 207s _________________ test_pick_unit_with_varying_ratios[3.0-2-s] __________________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s > from numpy.__config__ import show_config 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 207s from numpy._core._multiarray_umath import ( 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s from . import multiarray 207s except ImportError as exc: 207s import sys 207s msg = """ 207s 207s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s 207s Importing the numpy C-extensions failed. This error can happen for 207s many reasons, often due to issues with your setup or how NumPy was 207s installed. 207s 207s We have compiled some common reasons and troubleshooting tips at: 207s 207s https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s 207s Please note and check the following: 207s 207s * The Python version is: Python%d.%d from "%s" 207s * The NumPy version is: "%s" 207s 207s and make sure that they are the versions you expect. 207s Please carefully study the documentation linked above for further help. 207s 207s Original error was: %s 207s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 207s __version__, exc) 207s > raise ImportError(msg) 207s E ImportError: 207s E 207s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s E 207s E Importing the numpy C-extensions failed. This error can happen for 207s E many reasons, often due to issues with your setup or how NumPy was 207s E installed. 207s E 207s E We have compiled some common reasons and troubleshooting tips at: 207s E 207s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s E 207s E Please note and check the following: 207s E 207s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 207s E * The NumPy version is: "2.2.4" 207s E 207s E and make sure that they are the versions you expect. 207s E Please carefully study the documentation linked above for further help. 207s E 207s E Original error was: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 207s 207s The above exception was the direct cause of the following exception: 207s 207s min_ratio = 3.0, span_seconds = 2, expected_unit = 's' 207s 207s @pytest.mark.parametrize( 207s "min_ratio,span_seconds,expected_unit", 207s [ 207s # min_ratio=-1: always use base unit 207s (-1, 2, "s"), # Small value 207s (-1, 3700, "s"), # More than 1 hour - still base unit 207s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 207s # min_ratio=1.5: switch units more aggressively 207s (1.5, 90, "min"), # 1.5 minutes meets threshold 207s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 207s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 207s # min_ratio=3.0: standard threshold 207s (3.0, 2, "s"), # 2 seconds - stays in base unit 207s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 207s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 207s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 207s # min_ratio=5.0: more conservative switching 207s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 207s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 207s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 207s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 207s ], 207s ) 207s def test_pick_unit_with_varying_ratios( 207s min_ratio: float, span_seconds: float, expected_unit: str 207s ) -> None: 207s """Test pick_unit selects appropriate unit based on min_ratio.""" 207s > formatter: Any = plot.HumanizedAxisFormatter( 207s min_ratio=min_ratio, units=plot._TIME_UNITS 207s ) 207s 207s test/test_plot_humanization.py:36: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 207s from matplotlib.ticker import Formatter 207s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 207s from . import _api, _version, cbook, _docstring, rcsetup 207s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 207s import numpy as np 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s from numpy.__config__ import show_config 207s except ImportError as e: 207s msg = """Error importing numpy: you should not try to import numpy from 207s its source directory; please exit the numpy source tree, and relaunch 207s your python interpreter from there.""" 207s > raise ImportError(msg) from e 207s E ImportError: Error importing numpy: you should not try to import numpy from 207s E its source directory; please exit the numpy source tree, and relaunch 207s E your python interpreter from there. 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 207s _______________ test_pick_unit_with_varying_ratios[3.0-180-min] ________________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s > from numpy.__config__ import show_config 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 207s from numpy._core._multiarray_umath import ( 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s from . import multiarray 207s except ImportError as exc: 207s import sys 207s msg = """ 207s 207s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s 207s Importing the numpy C-extensions failed. This error can happen for 207s many reasons, often due to issues with your setup or how NumPy was 207s installed. 207s 207s We have compiled some common reasons and troubleshooting tips at: 207s 207s https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s 207s Please note and check the following: 207s 207s * The Python version is: Python%d.%d from "%s" 207s * The NumPy version is: "%s" 207s 207s and make sure that they are the versions you expect. 207s Please carefully study the documentation linked above for further help. 207s 207s Original error was: %s 207s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 207s __version__, exc) 207s > raise ImportError(msg) 207s E ImportError: 207s E 207s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 207s E 207s E Importing the numpy C-extensions failed. This error can happen for 207s E many reasons, often due to issues with your setup or how NumPy was 207s E installed. 207s E 207s E We have compiled some common reasons and troubleshooting tips at: 207s E 207s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 207s E 207s E Please note and check the following: 207s E 207s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 207s E * The NumPy version is: "2.2.4" 207s E 207s E and make sure that they are the versions you expect. 207s E Please carefully study the documentation linked above for further help. 207s E 207s E Original error was: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 207s 207s The above exception was the direct cause of the following exception: 207s 207s min_ratio = 3.0, span_seconds = 180, expected_unit = 'min' 207s 207s @pytest.mark.parametrize( 207s "min_ratio,span_seconds,expected_unit", 207s [ 207s # min_ratio=-1: always use base unit 207s (-1, 2, "s"), # Small value 207s (-1, 3700, "s"), # More than 1 hour - still base unit 207s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 207s # min_ratio=1.5: switch units more aggressively 207s (1.5, 90, "min"), # 1.5 minutes meets threshold 207s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 207s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 207s # min_ratio=3.0: standard threshold 207s (3.0, 2, "s"), # 2 seconds - stays in base unit 207s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 207s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 207s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 207s # min_ratio=5.0: more conservative switching 207s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 207s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 207s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 207s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 207s ], 207s ) 207s def test_pick_unit_with_varying_ratios( 207s min_ratio: float, span_seconds: float, expected_unit: str 207s ) -> None: 207s """Test pick_unit selects appropriate unit based on min_ratio.""" 207s > formatter: Any = plot.HumanizedAxisFormatter( 207s min_ratio=min_ratio, units=plot._TIME_UNITS 207s ) 207s 207s test/test_plot_humanization.py:36: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 207s from matplotlib.ticker import Formatter 207s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 207s from . import _api, _version, cbook, _docstring, rcsetup 207s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 207s import numpy as np 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 207s examples into the shell. To see which functions are available in `numpy`, 207s type ``np.`` (where ```` refers to the TAB key), or use 207s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 207s down the list. To view the docstring for a function, use 207s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 207s the source code). 207s 207s Copies vs. in-place operation 207s ----------------------------- 207s Most of the functions in `numpy` return a copy of the array argument 207s (e.g., `np.sort`). In-place versions of these functions are often 207s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 207s Exceptions to this rule are documented. 207s 207s """ 207s import os 207s import sys 207s import warnings 207s 207s from ._globals import _NoValue, _CopyMode 207s from ._expired_attrs_2_0 import __expired_attributes__ 207s 207s 207s # If a version with git hash was stored, use that instead 207s from . import version 207s from .version import __version__ 207s 207s # We first need to detect if we're being called as part of the numpy setup 207s # procedure itself in a reliable manner. 207s try: 207s __NUMPY_SETUP__ 207s except NameError: 207s __NUMPY_SETUP__ = False 207s 207s if __NUMPY_SETUP__: 207s sys.stderr.write('Running from numpy source directory.\n') 207s else: 207s # Allow distributors to run custom init code before importing numpy._core 207s from . import _distributor_init 207s 207s try: 207s from numpy.__config__ import show_config 207s except ImportError as e: 207s msg = """Error importing numpy: you should not try to import numpy from 207s its source directory; please exit the numpy source tree, and relaunch 207s your python interpreter from there.""" 207s > raise ImportError(msg) from e 207s E ImportError: Error importing numpy: you should not try to import numpy from 207s E its source directory; please exit the numpy source tree, and relaunch 207s E your python interpreter from there. 207s 207s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 207s _______________ test_pick_unit_with_varying_ratios[3.0-10800-h] ________________ 207s 207s """ 207s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 207s 207s Please note that this module is private. All functions and objects 207s are available in the main ``numpy`` namespace - use that instead. 207s 207s """ 207s 207s import os 207s 207s from numpy.version import version as __version__ 207s 207s 207s # disables OpenBLAS affinity setting of the main thread that limits 207s # python threads or processes to one core 207s env_added = [] 207s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 207s if envkey not in os.environ: 207s os.environ[envkey] = '1' 207s env_added.append(envkey) 207s 207s try: 207s > from . import multiarray 207s 207s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 207s from . import overrides 207s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 207s 207s """Implementation of __array_function__ overrides from NEP-18.""" 207s import collections 207s import functools 207s 207s from .._utils import set_module 207s from .._utils._inspect import getargspec 207s > from numpy._core._multiarray_umath import ( 207s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 207s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 207s 207s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 207s 207s During handling of the above exception, another exception occurred: 207s 207s """ 207s NumPy 207s ===== 207s 207s Provides 207s 1. An array object of arbitrary homogeneous items 207s 2. Fast mathematical operations over arrays 207s 3. Linear Algebra, Fourier Transforms, Random Number Generation 207s 207s How to use the documentation 207s ---------------------------- 207s Documentation is available in two forms: docstrings provided 207s with the code, and a loose standing reference guide, available from 207s `the NumPy homepage `_. 207s 207s We recommend exploring the docstrings using 207s `IPython `_, an advanced Python shell with 207s TAB-completion and introspection capabilities. See below for further 207s instructions. 207s 207s The docstring examples assume that `numpy` has been imported as ``np``:: 207s 207s >>> import numpy as np 207s 207s Code snippets are indicated by three greater-than signs:: 207s 207s >>> x = 42 207s >>> x = x + 1 207s 207s Use the built-in ``help`` function to view a function's docstring:: 207s 207s >>> help(np.sort) 207s ... # doctest: +SKIP 207s 207s For some objects, ``np.info(obj)`` may provide additional help. This is 207s particularly true if you see the line "Help on ufunc object:" at the top 207s of the help() page. Ufuncs are implemented in C, not Python, for speed. 207s The native Python help() does not know how to view their help, but our 207s np.info() function does. 207s 207s Available subpackages 207s --------------------- 207s lib 207s Basic functions used by several sub-packages. 207s random 207s Core Random Tools 207s linalg 207s Core Linear Algebra Tools 207s fft 207s Core FFT routines 207s polynomial 207s Polynomial tools 207s testing 207s NumPy testing tools 207s distutils 207s Enhancements to distutils with support for 207s Fortran compilers support and more (for Python <= 3.11) 207s 207s Utilities 207s --------- 207s test 207s Run numpy unittests 207s show_config 207s Show numpy build configuration 207s __version__ 207s NumPy version string 207s 207s Viewing documentation using IPython 207s ----------------------------------- 207s 207s Start IPython and import `numpy` usually under the alias ``np``: `import 207s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s min_ratio = 3.0, span_seconds = 10800, expected_unit = 'h' 208s 208s @pytest.mark.parametrize( 208s "min_ratio,span_seconds,expected_unit", 208s [ 208s # min_ratio=-1: always use base unit 208s (-1, 2, "s"), # Small value 208s (-1, 3700, "s"), # More than 1 hour - still base unit 208s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 208s # min_ratio=1.5: switch units more aggressively 208s (1.5, 90, "min"), # 1.5 minutes meets threshold 208s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 208s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 208s # min_ratio=3.0: standard threshold 208s (3.0, 2, "s"), # 2 seconds - stays in base unit 208s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 208s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 208s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 208s # min_ratio=5.0: more conservative switching 208s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 208s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 208s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 208s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 208s ], 208s ) 208s def test_pick_unit_with_varying_ratios( 208s min_ratio: float, span_seconds: float, expected_unit: str 208s ) -> None: 208s """Test pick_unit selects appropriate unit based on min_ratio.""" 208s > formatter: Any = plot.HumanizedAxisFormatter( 208s min_ratio=min_ratio, units=plot._TIME_UNITS 208s ) 208s 208s test/test_plot_humanization.py:36: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _______________ test_pick_unit_with_varying_ratios[3.0-259200-d] _______________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s min_ratio = 3.0, span_seconds = 259200, expected_unit = 'd' 208s 208s @pytest.mark.parametrize( 208s "min_ratio,span_seconds,expected_unit", 208s [ 208s # min_ratio=-1: always use base unit 208s (-1, 2, "s"), # Small value 208s (-1, 3700, "s"), # More than 1 hour - still base unit 208s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 208s # min_ratio=1.5: switch units more aggressively 208s (1.5, 90, "min"), # 1.5 minutes meets threshold 208s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 208s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 208s # min_ratio=3.0: standard threshold 208s (3.0, 2, "s"), # 2 seconds - stays in base unit 208s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 208s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 208s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 208s # min_ratio=5.0: more conservative switching 208s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 208s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 208s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 208s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 208s ], 208s ) 208s def test_pick_unit_with_varying_ratios( 208s min_ratio: float, span_seconds: float, expected_unit: str 208s ) -> None: 208s """Test pick_unit selects appropriate unit based on min_ratio.""" 208s > formatter: Any = plot.HumanizedAxisFormatter( 208s min_ratio=min_ratio, units=plot._TIME_UNITS 208s ) 208s 208s test/test_plot_humanization.py:36: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ________________ test_pick_unit_with_varying_ratios[5.0-240-s] _________________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s min_ratio = 5.0, span_seconds = 240, expected_unit = 's' 208s 208s @pytest.mark.parametrize( 208s "min_ratio,span_seconds,expected_unit", 208s [ 208s # min_ratio=-1: always use base unit 208s (-1, 2, "s"), # Small value 208s (-1, 3700, "s"), # More than 1 hour - still base unit 208s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 208s # min_ratio=1.5: switch units more aggressively 208s (1.5, 90, "min"), # 1.5 minutes meets threshold 208s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 208s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 208s # min_ratio=3.0: standard threshold 208s (3.0, 2, "s"), # 2 seconds - stays in base unit 208s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 208s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 208s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 208s # min_ratio=5.0: more conservative switching 208s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 208s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 208s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 208s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 208s ], 208s ) 208s def test_pick_unit_with_varying_ratios( 208s min_ratio: float, span_seconds: float, expected_unit: str 208s ) -> None: 208s """Test pick_unit selects appropriate unit based on min_ratio.""" 208s > formatter: Any = plot.HumanizedAxisFormatter( 208s min_ratio=min_ratio, units=plot._TIME_UNITS 208s ) 208s 208s test/test_plot_humanization.py:36: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _______________ test_pick_unit_with_varying_ratios[5.0-300-min] ________________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s min_ratio = 5.0, span_seconds = 300, expected_unit = 'min' 208s 208s @pytest.mark.parametrize( 208s "min_ratio,span_seconds,expected_unit", 208s [ 208s # min_ratio=-1: always use base unit 208s (-1, 2, "s"), # Small value 208s (-1, 3700, "s"), # More than 1 hour - still base unit 208s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 208s # min_ratio=1.5: switch units more aggressively 208s (1.5, 90, "min"), # 1.5 minutes meets threshold 208s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 208s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 208s # min_ratio=3.0: standard threshold 208s (3.0, 2, "s"), # 2 seconds - stays in base unit 208s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 208s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 208s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 208s # min_ratio=5.0: more conservative switching 208s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 208s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 208s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 208s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 208s ], 208s ) 208s def test_pick_unit_with_varying_ratios( 208s min_ratio: float, span_seconds: float, expected_unit: str 208s ) -> None: 208s """Test pick_unit selects appropriate unit based on min_ratio.""" 208s > formatter: Any = plot.HumanizedAxisFormatter( 208s min_ratio=min_ratio, units=plot._TIME_UNITS 208s ) 208s 208s test/test_plot_humanization.py:36: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ______________ test_pick_unit_with_varying_ratios[5.0-14400-min] _______________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s min_ratio = 5.0, span_seconds = 14400, expected_unit = 'min' 208s 208s @pytest.mark.parametrize( 208s "min_ratio,span_seconds,expected_unit", 208s [ 208s # min_ratio=-1: always use base unit 208s (-1, 2, "s"), # Small value 208s (-1, 3700, "s"), # More than 1 hour - still base unit 208s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 208s # min_ratio=1.5: switch units more aggressively 208s (1.5, 90, "min"), # 1.5 minutes meets threshold 208s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 208s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 208s # min_ratio=3.0: standard threshold 208s (3.0, 2, "s"), # 2 seconds - stays in base unit 208s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 208s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 208s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 208s # min_ratio=5.0: more conservative switching 208s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 208s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 208s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 208s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 208s ], 208s ) 208s def test_pick_unit_with_varying_ratios( 208s min_ratio: float, span_seconds: float, expected_unit: str 208s ) -> None: 208s """Test pick_unit selects appropriate unit based on min_ratio.""" 208s > formatter: Any = plot.HumanizedAxisFormatter( 208s min_ratio=min_ratio, units=plot._TIME_UNITS 208s ) 208s 208s test/test_plot_humanization.py:36: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _______________ test_pick_unit_with_varying_ratios[5.0-18000-h] ________________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s min_ratio = 5.0, span_seconds = 18000, expected_unit = 'h' 208s 208s @pytest.mark.parametrize( 208s "min_ratio,span_seconds,expected_unit", 208s [ 208s # min_ratio=-1: always use base unit 208s (-1, 2, "s"), # Small value 208s (-1, 3700, "s"), # More than 1 hour - still base unit 208s (-1, 3 * 60 * 60 * 24, "s"), # 3 days - still base unit 208s # min_ratio=1.5: switch units more aggressively 208s (1.5, 90, "min"), # 1.5 minutes meets threshold 208s (1.5, 90 * 60, "h"), # 1.5 hours meets threshold 208s (1.5, 36 * 60 * 60, "d"), # 1.5 days meets threshold 208s # min_ratio=3.0: standard threshold 208s (3.0, 2, "s"), # 2 seconds - stays in base unit 208s (3.0, 3 * 60, "min"), # 3 minutes - meets min_ratio for minutes 208s (3.0, 3 * 60 * 60, "h"), # 3 hours - meets min_ratio for hours 208s (3.0, 3 * 60 * 60 * 24, "d"), # 3 days - meets min_ratio for days 208s # min_ratio=5.0: more conservative switching 208s (5.0, 4 * 60, "s"), # 4 minutes - doesn't meet threshold, stays seconds 208s (5.0, 5 * 60, "min"), # 5 minutes - meets threshold 208s (5.0, 4 * 60 * 60, "min"), # 4 hours - doesn't meet hour threshold 208s (5.0, 5 * 60 * 60, "h"), # 5 hours - meets hour threshold 208s ], 208s ) 208s def test_pick_unit_with_varying_ratios( 208s min_ratio: float, span_seconds: float, expected_unit: str 208s ) -> None: 208s """Test pick_unit selects appropriate unit based on min_ratio.""" 208s > formatter: Any = plot.HumanizedAxisFormatter( 208s min_ratio=min_ratio, units=plot._TIME_UNITS 208s ) 208s 208s test/test_plot_humanization.py:36: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ______________ test_formatter_output[units0-axis_range0-15-15.0s] ______________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('s', 1), ('min', 60), ('h', 3600), ('d', 86400)], axis_range = (0, 30) 208s value = 15, expected = '15.0s' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ____________ test_formatter_output[units1-axis_range1-138.0-2.3min] ____________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('s', 1), ('min', 60), ('h', 3600), ('d', 86400)] 208s axis_range = (0, 300), value = 138.0, expected = '2.3min' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ____________ test_formatter_output[units2-axis_range2-28080.0-7.8h] ____________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('s', 1), ('min', 60), ('h', 3600), ('d', 86400)] 208s axis_range = (0, 11000), value = 28080.0, expected = '7.8h' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ___________ test_formatter_output[units3-axis_range3-276480.0-3.2d] ____________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('s', 1), ('min', 60), ('h', 3600), ('d', 86400)] 208s axis_range = (0, 260000), value = 276480.0, expected = '3.2d' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ____________ test_formatter_output[units4-axis_range4-2662.4-2.6KB] ____________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('B', 1), ('KB', 1024), ('MB', 1048576), ('GB', 1073741824), ('TB', 1099511627776), ('PB', 1125899906842624)] 208s axis_range = (0, 5120), value = 2662.4, expected = '2.6KB' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s __________ test_formatter_output[units5-axis_range5-1572864.0-1.5MB] ___________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('B', 1), ('KB', 1024), ('MB', 1048576), ('GB', 1073741824), ('TB', 1099511627776), ('PB', 1125899906842624)] 208s axis_range = (0, 4194304), value = 1572864.0, expected = '1.5MB' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _________ test_formatter_output[units6-axis_range6-8912057139.2-8.3GB] _________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('B', 1), ('KB', 1024), ('MB', 1048576), ('GB', 1073741824), ('TB', 1099511627776), ('PB', 1125899906842624)] 208s axis_range = (0, 3221225472), value = 8912057139.2, expected = '8.3GB' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _______ test_formatter_output[units7-axis_range7-1429365116108.8-1.3TB] ________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('B', 1), ('KB', 1024), ('MB', 1048576), ('GB', 1073741824), ('TB', 1099511627776), ('PB', 1125899906842624)] 208s axis_range = (0, 3298534883328), value = 1429365116108.8, expected = '1.3TB' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ______ test_formatter_output[units8-axis_range8-7318349394477056.0-6.5PB] ______ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s 208s units = [('B', 1), ('KB', 1024), ('MB', 1048576), ('GB', 1073741824), ('TB', 1099511627776), ('PB', 1125899906842624)] 208s axis_range = (0, 3490289711212134.5), value = 7318349394477056.0 208s expected = '6.5PB' 208s 208s @pytest.mark.parametrize( 208s "units,axis_range,value,expected", 208s [ 208s # Time formatting tests 208s (plot._TIME_UNITS, (0, 30), 15, "15.0s"), 208s (plot._TIME_UNITS, (0, 300), 2.3 * 60, "2.3min"), 208s (plot._TIME_UNITS, (0, 11000), 7.8 * 60 * 60, "7.8h"), 208s (plot._TIME_UNITS, (0, 260000), 3.2 * 60 * 60 * 24, "3.2d"), 208s # Memory formatting tests 208s (plot._MEMORY_UNITS, (0, 5 * 1024), 2.6 * 1024, "2.6KB"), 208s (plot._MEMORY_UNITS, (0, 4 * 1024**2), 1.5 * (1024**2), "1.5MB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**3), 8.3 * 1024**3, "8.3GB"), 208s (plot._MEMORY_UNITS, (0, 3 * 1024**4), 1.3 * 1024**4, "1.3TB"), 208s (plot._MEMORY_UNITS, (0, 3.1 * 1024**5), 6.5 * 1024**5, "6.5PB"), 208s ], 208s ) 208s def test_formatter_output( 208s units: List[Tuple[str, float]], 208s axis_range: Tuple[float, float], 208s value: float, 208s expected: str, 208s ) -> None: 208s """Test HumanizedAxisFormatter formats values correctly for time and memory units.""" 208s > formatter: Any = plot.HumanizedAxisFormatter(min_ratio=3.0, units=units) 208s 208s test/test_plot_humanization.py:66: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/con_duct/suite/plot.py:31: in __new__ 208s from matplotlib.ticker import Formatter 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ____________ TestPlotMatplotlib.test_matplotlib_plot_file_not_found ____________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s /usr/lib/python3.14/unittest/mock.py:1429: in patched 208s with self.decoration_helper(patched, 208s /usr/lib/python3.14/contextlib.py:141: in __enter__ 208s return next(self.gen) 208s /usr/lib/python3.14/unittest/mock.py:1411: in decoration_helper 208s arg = exit_stack.enter_context(patching) 208s /usr/lib/python3.14/contextlib.py:530: in enter_context 208s result = _enter(cm) 208s /usr/lib/python3.14/unittest/mock.py:1487: in __enter__ 208s self.target = self.getter() 208s /usr/lib/python3.14/pkgutil.py:458: in resolve_name 208s mod = importlib.import_module(modname) 208s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ______________ TestPlotMatplotlib.test_matplotlib_plot_info_json _______________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s /usr/lib/python3.14/unittest/mock.py:1429: in patched 208s with self.decoration_helper(patched, 208s /usr/lib/python3.14/contextlib.py:141: in __enter__ 208s return next(self.gen) 208s /usr/lib/python3.14/unittest/mock.py:1411: in decoration_helper 208s arg = exit_stack.enter_context(patching) 208s /usr/lib/python3.14/contextlib.py:530: in enter_context 208s result = _enter(cm) 208s /usr/lib/python3.14/unittest/mock.py:1487: in __enter__ 208s self.target = self.getter() 208s /usr/lib/python3.14/pkgutil.py:458: in resolve_name 208s mod = importlib.import_module(modname) 208s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _ TestPlotMatplotlib.test_matplotlib_plot_interactive_backend_with_get_backend _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s /usr/lib/python3.14/unittest/mock.py:1429: in patched 208s with self.decoration_helper(patched, 208s /usr/lib/python3.14/contextlib.py:141: in __enter__ 208s return next(self.gen) 208s /usr/lib/python3.14/unittest/mock.py:1411: in decoration_helper 208s arg = exit_stack.enter_context(patching) 208s /usr/lib/python3.14/contextlib.py:530: in enter_context 208s result = _enter(cm) 208s /usr/lib/python3.14/unittest/mock.py:1487: in __enter__ 208s self.target = self.getter() 208s /usr/lib/python3.14/pkgutil.py:458: in resolve_name 208s mod = importlib.import_module(modname) 208s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _____________ TestPlotMatplotlib.test_matplotlib_plot_invalid_json _____________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s /usr/lib/python3.14/unittest/mock.py:1429: in patched 208s with self.decoration_helper(patched, 208s /usr/lib/python3.14/contextlib.py:141: in __enter__ 208s return next(self.gen) 208s /usr/lib/python3.14/unittest/mock.py:1411: in decoration_helper 208s arg = exit_stack.enter_context(patching) 208s /usr/lib/python3.14/contextlib.py:530: in enter_context 208s result = _enter(cm) 208s /usr/lib/python3.14/unittest/mock.py:1487: in __enter__ 208s self.target = self.getter() 208s /usr/lib/python3.14/pkgutil.py:458: in resolve_name 208s mod = importlib.import_module(modname) 208s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _________ TestPlotMatplotlib.test_matplotlib_plot_malformed_usage_file _________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s /usr/lib/python3.14/unittest/mock.py:1429: in patched 208s with self.decoration_helper(patched, 208s /usr/lib/python3.14/contextlib.py:141: in __enter__ 208s return next(self.gen) 208s /usr/lib/python3.14/unittest/mock.py:1411: in decoration_helper 208s arg = exit_stack.enter_context(patching) 208s /usr/lib/python3.14/contextlib.py:530: in enter_context 208s result = _enter(cm) 208s /usr/lib/python3.14/unittest/mock.py:1487: in __enter__ 208s self.target = self.getter() 208s /usr/lib/python3.14/pkgutil.py:458: in resolve_name 208s mod = importlib.import_module(modname) 208s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _______ TestPlotMatplotlib.test_matplotlib_plot_non_interactive_backend ________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s /usr/lib/python3.14/unittest/mock.py:1429: in patched 208s with self.decoration_helper(patched, 208s /usr/lib/python3.14/contextlib.py:141: in __enter__ 208s return next(self.gen) 208s /usr/lib/python3.14/unittest/mock.py:1411: in decoration_helper 208s arg = exit_stack.enter_context(patching) 208s /usr/lib/python3.14/contextlib.py:530: in enter_context 208s result = _enter(cm) 208s /usr/lib/python3.14/unittest/mock.py:1487: in __enter__ 208s self.target = self.getter() 208s /usr/lib/python3.14/pkgutil.py:458: in resolve_name 208s mod = importlib.import_module(modname) 208s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s _ TestPlotMatplotlib.test_matplotlib_plot_non_interactive_backend_with_get_backend _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s /usr/lib/python3.14/unittest/mock.py:1429: in patched 208s with self.decoration_helper(patched, 208s /usr/lib/python3.14/contextlib.py:141: in __enter__ 208s return next(self.gen) 208s /usr/lib/python3.14/unittest/mock.py:1411: in decoration_helper 208s arg = exit_stack.enter_context(patching) 208s /usr/lib/python3.14/contextlib.py:530: in enter_context 208s result = _enter(cm) 208s /usr/lib/python3.14/unittest/mock.py:1487: in __enter__ 208s self.target = self.getter() 208s /usr/lib/python3.14/pkgutil.py:458: in resolve_name 208s mod = importlib.import_module(modname) 208s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from therE: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.7X1snJ/autopkgtest_tmp/build; python3.14 -m pytest test 208s I: pybuild pybuild:308: chmod +x /tmp/autopkgtest.7X1snJ/build.Rrh/src/test/data/spawn_children.sh 208s I: pybuild base:311: cd /tmp/autopkgtest.7X1snJ/autopkgtest_tmp/build; python3.13 -m pytest test 208s e.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s ________________ TestPlotMatplotlib.test_matplotlib_plot_sanity ________________ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s > from . import multiarray 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:23: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/_core/multiarray.py:10: in 208s from . import overrides 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """Implementation of __array_function__ overrides from NEP-18.""" 208s import collections 208s import functools 208s 208s from .._utils import set_module 208s from .._utils._inspect import getargspec 208s > from numpy._core._multiarray_umath import ( 208s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 208s E ModuleNotFoundError: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/overrides.py:7: ModuleNotFoundError 208s 208s During handling of the above exception, another exception occurred: 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s > from numpy.__config__ import show_config 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:114: 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 208s from numpy._core._multiarray_umath import ( 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 208s 208s Please note that this module is private. All functions and objects 208s are available in the main ``numpy`` namespace - use that instead. 208s 208s """ 208s 208s import os 208s 208s from numpy.version import version as __version__ 208s 208s 208s # disables OpenBLAS affinity setting of the main thread that limits 208s # python threads or processes to one core 208s env_added = [] 208s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 208s if envkey not in os.environ: 208s os.environ[envkey] = '1' 208s env_added.append(envkey) 208s 208s try: 208s from . import multiarray 208s except ImportError as exc: 208s import sys 208s msg = """ 208s 208s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s 208s Importing the numpy C-extensions failed. This error can happen for 208s many reasons, often due to issues with your setup or how NumPy was 208s installed. 208s 208s We have compiled some common reasons and troubleshooting tips at: 208s 208s https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s 208s Please note and check the following: 208s 208s * The Python version is: Python%d.%d from "%s" 208s * The NumPy version is: "%s" 208s 208s and make sure that they are the versions you expect. 208s Please carefully study the documentation linked above for further help. 208s 208s Original error was: %s 208s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 208s __version__, exc) 208s > raise ImportError(msg) 208s E ImportError: 208s E 208s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 208s E 208s E Importing the numpy C-extensions failed. This error can happen for 208s E many reasons, often due to issues with your setup or how NumPy was 208s E installed. 208s E 208s E We have compiled some common reasons and troubleshooting tips at: 208s E 208s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 208s E 208s E Please note and check the following: 208s E 208s E * The Python version is: Python3.14 from "/usr/bin/python3.14" 208s E * The NumPy version is: "2.2.4" 208s E 208s E and make sure that they are the versions you expect. 208s E Please carefully study the documentation linked above for further help. 208s E 208s E Original error was: No module named 'numpy._core._multiarray_umath' 208s 208s /usr/lib/python3/dist-packages/numpy/_core/__init__.py:49: ImportError 208s 208s The above exception was the direct cause of the following exception: 208s /usr/lib/python3.14/unittest/mock.py:1429: in patched 208s with self.decoration_helper(patched, 208s /usr/lib/python3.14/contextlib.py:141: in __enter__ 208s return next(self.gen) 208s /usr/lib/python3.14/unittest/mock.py:1411: in decoration_helper 208s arg = exit_stack.enter_context(patching) 208s /usr/lib/python3.14/contextlib.py:530: in enter_context 208s result = _enter(cm) 208s /usr/lib/python3.14/unittest/mock.py:1487: in __enter__ 208s self.target = self.getter() 208s /usr/lib/python3.14/pkgutil.py:458: in resolve_name 208s mod = importlib.import_module(modname) 208s /usr/lib/python3.14/importlib/__init__.py:88: in import_module 208s return _bootstrap._gcd_import(name[level:], package, level) 208s /usr/lib/python3/dist-packages/matplotlib/__init__.py:161: in 208s from . import _api, _version, cbook, _docstring, rcsetup 208s /usr/lib/python3/dist-packages/matplotlib/cbook.py:24: in 208s import numpy as np 208s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 208s 208s """ 208s NumPy 208s ===== 208s 208s Provides 208s 1. An array object of arbitrary homogeneous items 208s 2. Fast mathematical operations over arrays 208s 3. Linear Algebra, Fourier Transforms, Random Number Generation 208s 208s How to use the documentation 208s ---------------------------- 208s Documentation is available in two forms: docstrings provided 208s with the code, and a loose standing reference guide, available from 208s `the NumPy homepage `_. 208s 208s We recommend exploring the docstrings using 208s `IPython `_, an advanced Python shell with 208s TAB-completion and introspection capabilities. See below for further 208s instructions. 208s 208s The docstring examples assume that `numpy` has been imported as ``np``:: 208s 208s >>> import numpy as np 208s 208s Code snippets are indicated by three greater-than signs:: 208s 208s >>> x = 42 208s >>> x = x + 1 208s 208s Use the built-in ``help`` function to view a function's docstring:: 208s 208s >>> help(np.sort) 208s ... # doctest: +SKIP 208s 208s For some objects, ``np.info(obj)`` may provide additional help. This is 208s particularly true if you see the line "Help on ufunc object:" at the top 208s of the help() page. Ufuncs are implemented in C, not Python, for speed. 208s The native Python help() does not know how to view their help, but our 208s np.info() function does. 208s 208s Available subpackages 208s --------------------- 208s lib 208s Basic functions used by several sub-packages. 208s random 208s Core Random Tools 208s linalg 208s Core Linear Algebra Tools 208s fft 208s Core FFT routines 208s polynomial 208s Polynomial tools 208s testing 208s NumPy testing tools 208s distutils 208s Enhancements to distutils with support for 208s Fortran compilers support and more (for Python <= 3.11) 208s 208s Utilities 208s --------- 208s test 208s Run numpy unittests 208s show_config 208s Show numpy build configuration 208s __version__ 208s NumPy version string 208s 208s Viewing documentation using IPython 208s ----------------------------------- 208s 208s Start IPython and import `numpy` usually under the alias ``np``: `import 208s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 208s examples into the shell. To see which functions are available in `numpy`, 208s type ``np.`` (where ```` refers to the TAB key), or use 208s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 208s down the list. To view the docstring for a function, use 208s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 208s the source code). 208s 208s Copies vs. in-place operation 208s ----------------------------- 208s Most of the functions in `numpy` return a copy of the array argument 208s (e.g., `np.sort`). In-place versions of these functions are often 208s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 208s Exceptions to this rule are documented. 208s 208s """ 208s import os 208s import sys 208s import warnings 208s 208s from ._globals import _NoValue, _CopyMode 208s from ._expired_attrs_2_0 import __expired_attributes__ 208s 208s 208s # If a version with git hash was stored, use that instead 208s from . import version 208s from .version import __version__ 208s 208s # We first need to detect if we're being called as part of the numpy setup 208s # procedure itself in a reliable manner. 208s try: 208s __NUMPY_SETUP__ 208s except NameError: 208s __NUMPY_SETUP__ = False 208s 208s if __NUMPY_SETUP__: 208s sys.stderr.write('Running from numpy source directory.\n') 208s else: 208s # Allow distributors to run custom init code before importing numpy._core 208s from . import _distributor_init 208s 208s try: 208s from numpy.__config__ import show_config 208s except ImportError as e: 208s msg = """Error importing numpy: you should not try to import numpy from 208s its source directory; please exit the numpy source tree, and relaunch 208s your python interpreter from there.""" 208s > raise ImportError(msg) from e 208s E ImportError: Error importing numpy: you should not try to import numpy from 208s E its source directory; please exit the numpy source tree, and relaunch 208s E your python interpreter from there. 208s 208s /usr/lib/python3/dist-packages/numpy/__init__.py:119: ImportError 208s =========================== short test summary info ============================ 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[-1-2-s] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[-1-3700-s] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[-1-259200-s] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[1.5-90-min] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[1.5-5400-h] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[1.5-129600-d] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[3.0-2-s] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[3.0-180-min] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[3.0-10800-h] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[3.0-259200-d] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[5.0-240-s] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[5.0-300-min] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[5.0-14400-min] 208s FAILED test/test_plot_humanization.py::test_pick_unit_with_varying_ratios[5.0-18000-h] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units0-axis_range0-15-15.0s] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units1-axis_range1-138.0-2.3min] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units2-axis_range2-28080.0-7.8h] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units3-axis_range3-276480.0-3.2d] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units4-axis_range4-2662.4-2.6KB] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units5-axis_range5-1572864.0-1.5MB] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units6-axis_range6-8912057139.2-8.3GB] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units7-axis_range7-1429365116108.8-1.3TB] 208s FAILED test/test_plot_humanization.py::test_formatter_output[units8-axis_range8-7318349394477056.0-6.5PB] 208s FAILED test/test_suite.py::TestPlotMatplotlib::test_matplotlib_plot_file_not_found 208s FAILED test/test_suite.py::TestPlotMatplotlib::test_matplotlib_plot_info_json 208s FAILED test/test_suite.py::TestPlotMatplotlib::test_matplotlib_plot_interactive_backend_with_get_backend 208s FAILED test/test_suite.py::TestPlotMatplotlib::test_matplotlib_plot_invalid_json 208s FAILED test/test_suite.py::TestPlotMatplotlib::test_matplotlib_plot_malformed_usage_file 208s FAILED test/test_suite.py::TestPlotMatplotlib::test_matplotlib_plot_non_interactive_backend 208s FAILED test/test_suite.py::TestPlotMatplotlib::test_matplotlib_plot_non_interactive_backend_with_get_backend 208s FAILED test/test_suite.py::TestPlotMatplotlib::test_matplotlib_plot_sanity - ... 208s ======================= 31 failed, 258 passed in 38.68s ======================== 208s ============================= test session starts ============================== 208s platform linux -- Python 3.13.9, pytest-8.3.5, pluggy-1.6.0 208s rootdir: /tmp/autopkgtest.7X1snJ/autopkgtest_tmp/build 208s configfile: pyproject.toml 208s plugins: cov-5.0.0, rerunfailures-16.1, typeguard-4.4.2 208s collected 289 items 208s 208s test/test_aggregation.py .............. [ 4%] 209s test/test_arg_parsing.py .............. [ 9%] 221s test/test_e2e.py ................ [ 15%] 248s test/test_execution.py ...................F...... [ 24%] 248s test/test_formatter.py ................................................. [ 41%] 248s ......... [ 44%] 248s test/test_log_paths.py .............. [ 49%] 248s test/test_ls.py ............ [ 53%] 248s test/test_plot_humanization.py ....................... [ 61%] 248s test/test_prepare_outputs.py ................ [ 66%] 248s test/test_report.py ........................ [ 75%] 248s test/test_schema.py . [ 75%] 249s test/test_suite.py ................................ [ 86%] 252s test/test_tailpipe.py ............... [ 91%] 252s test/test_utils.py ........... [ 95%] 252s test/test_validation.py ............. [100%] 252s 252s =================================== FAILURES =================================== 252s _____________________________ test_signal_kill[0] ______________________________ 252s 252s temp_output_dir = '/tmp/pytest-of-ubuntu/pytest-1/test_signal_kill_0_0/' 252s fail_time = 0 252s 252s @pytest.mark.parametrize("fail_time", [None, 0, 10, -1, -3.14]) 252s def test_signal_kill(temp_output_dir: str, fail_time: float | None) -> None: 252s 252s wait_time = 0.6 252s proc = multiprocessing.Process( 252s target=_runner_for_signal_kill, args=(temp_output_dir, fail_time) 252s ) 252s proc.start() 252s sleep(wait_time) 252s assert proc.pid is not None, "Process PID should not be None" # for mypy 252s os.kill(proc.pid, signal.SIGINT) 252s sleep(wait_time) 252s os.kill(proc.pid, signal.SIGINT) 252s sleep(wait_time) 252s os.kill(proc.pid, signal.SIGINT) 252s proc.join() 252s 252s # Once the command has been killed, duct should exit gracefully with exit code 0 252s > assert proc.exitcode == 0 252s E AssertionError: assert 1 == 0 252s E + where 1 = .exitcode 252s 252s test/test_execution.py:279: AssertionError 252s ----------------------------- Captured stdout call ----------------------------- 252s Received 2 252s Received 2 252s ----------------------------- Captured stderr call ----------------------------- 252s Process Process-7: 252s Traceback (most recent call last): 252s File "/usr/lib/python3.13/multiprocessing/process.py", line 313, in _bootstrap 252s self.run() 252s ~~~~~~~~^^ 252s File "/usr/lib/python3.13/multiprocessing/process.py", line 108, in run 252s self._target(*self._args, **self._kwargs) 252s ~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s File "/tmp/autopkgtest.7X1snJ/autopkgtest_tmp/build/test/test_execution.py", line 258, in _runner_for_signal_kill 252s return execute(args) 252s File "/usr/lib/python3/dist-packages/con_duct/__main__.py", line 1191, in execute 252s process.wait() 252s ~~~~~~~~~~~~^^ 252s File "/usr/lib/python3.13/subprocess.py", line 1280, in wait 252s return self._wait(timeout=timeout) 252s ~~~~~~~~~~^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3.13/subprocess.py", line 2066, in _wait 252s (pid, sts) = self._try_wait(0) 252s ~~~~~~~~~~~~~~^^^ 252s File "/usr/lib/python3.13/subprocess.py", line 2024, in _try_wait 252s (pid, sts) = os.waitpid(self.pid, wait_flags) 252s ~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^ 252s File "/usr/lib/python3/dist-packages/con_duct/__main__.py", line 1087, in handle_signal 252s os.kill(self.pid, signal.SIGKILL) 252s ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^ 252s ProcessLookupError: [Errno 3] No such process 252s =========================== short test summary info ============================ 252s FAILED test/test_execution.py::test_signal_kill[0] - AssertionError: assert 1... 252s ======================== 1 failed, 288 passed in 44.40s ======================== 252s E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /tmp/autopkgtest.7X1snJ/autopkgtest_tmp/build; python3.13 -m pytest test 252s pybuild-autopkgtest: error: pybuild --autopkgtest --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 252s make: *** [/tmp/qz_fgHt9FX/run:4: pybuild-autopkgtest] Error 25 252s pybuild-autopkgtest: error: /tmp/qz_fgHt9FX/run pybuild-autopkgtest returned exit code 2 252s autopkgtest [12:08:52]: test pybuild-autopkgtest: -----------------------] 255s pybuild-autopkgtest FAIL non-zero exit status 25 255s autopkgtest [12:08:55]: test pybuild-autopkgtest: - - - - - - - - - - results - - - - - - - - - - 255s autopkgtest [12:08:55]: @@@@@@@@@@@@@@@@@@@@ summary 255s pybuild-autopkgtest FAIL non-zero exit status 25