0s autopkgtest [15:37:35]: starting date and time: 2024-11-13 15:37:35+0000 0s autopkgtest [15:37:35]: git checkout: 6f3be7a8 Fix armhf LXD image generation for plucky 0s autopkgtest [15:37:35]: host juju-7f2275-prod-proposed-migration-environment-15; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.j3hoc5op/out --timeout-copy=6000 --setup-commands /home/ubuntu/autopkgtest-cloud/worker-config-production/setup-canonical.sh --apt-pocket=proposed=src:python3-defaults,src:python3-stdlib-extensions --apt-upgrade python-scitrack --timeout-short=300 --timeout-copy=20000 --timeout-build=20000 '--env=ADT_TEST_TRIGGERS=python3-defaults/3.12.7-1 python3-stdlib-extensions/3.12.7-1' -- ssh -s /home/ubuntu/autopkgtest/ssh-setup/nova -- --flavor autopkgtest-s390x --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-15@bos03-s390x-15.secgroup --name adt-plucky-s390x-python-scitrack-20241113-153735-juju-7f2275-prod-proposed-migration-environment-15-98664a4e-744c-4e93-a776-15535fe54257 --image adt/ubuntu-plucky-s390x-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-15 --net-id=net_prod-proposed-migration-s390x -e TERM=linux -e ''"'"'http_proxy=http://squid.internal:3128'"'"'' -e ''"'"'https_proxy=http://squid.internal:3128'"'"'' -e ''"'"'no_proxy=127.0.0.1,127.0.1.1,login.ubuntu.com,localhost,localdomain,novalocal,internal,archive.ubuntu.com,ports.ubuntu.com,security.ubuntu.com,ddebs.ubuntu.com,changelogs.ubuntu.com,keyserver.ubuntu.com,launchpadlibrarian.net,launchpadcontent.net,launchpad.net,10.24.0.0/24,keystone.ps5.canonical.com,objectstorage.prodstack5.canonical.com'"'"'' --mirror=http://ftpmaster.internal/ubuntu/ 99s autopkgtest [15:39:14]: testbed dpkg architecture: s390x 99s autopkgtest [15:39:14]: testbed apt version: 2.9.8 99s autopkgtest [15:39:14]: @@@@@@@@@@@@@@@@@@@@ test bed setup 100s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 100s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 100s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [17.2 kB] 100s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [104 kB] 100s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [950 kB] 100s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [110 kB] 100s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [636 kB] 100s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [17.8 kB] 101s Fetched 1916 kB in 1s (2331 kB/s) 101s Reading package lists... 103s Reading package lists... 103s Building dependency tree... 103s Reading state information... 103s Calculating upgrade... 103s The following NEW packages will be installed: 103s python3.13-gdbm 103s The following packages will be upgraded: 103s libgnutls30t64 libgpgme11t64 libjson-glib-1.0-0 libjson-glib-1.0-common 103s libpython3-stdlib libutempter0 python3 python3-gdbm python3-minimal 103s 9 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 103s Need to get 1285 kB of archives. 103s After this operation, 103 kB of additional disk space will be used. 103s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-minimal s390x 3.12.7-1 [27.4 kB] 103s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3 s390x 3.12.7-1 [24.0 kB] 103s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libpython3-stdlib s390x 3.12.7-1 [10.0 kB] 103s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libgnutls30t64 s390x 3.8.8-2ubuntu1 [950 kB] 104s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-gdbm s390x 3.13.0-2 [31.0 kB] 104s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-gdbm s390x 3.12.7-1 [8642 B] 104s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x libgpgme11t64 s390x 1.23.2-5ubuntu4 [151 kB] 104s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-glib-1.0-common all 1.10.0+ds-3 [5586 B] 104s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-glib-1.0-0 s390x 1.10.0+ds-3 [67.5 kB] 104s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x libutempter0 s390x 1.2.1-4 [9708 B] 104s Fetched 1285 kB in 1s (2261 kB/s) 104s (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 ... 55510 files and directories currently installed.) 104s Preparing to unpack .../python3-minimal_3.12.7-1_s390x.deb ... 104s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 104s Setting up python3-minimal (3.12.7-1) ... 104s (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 ... 55510 files and directories currently installed.) 104s Preparing to unpack .../python3_3.12.7-1_s390x.deb ... 104s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 104s Preparing to unpack .../libpython3-stdlib_3.12.7-1_s390x.deb ... 104s Unpacking libpython3-stdlib:s390x (3.12.7-1) over (3.12.6-0ubuntu1) ... 104s Preparing to unpack .../libgnutls30t64_3.8.8-2ubuntu1_s390x.deb ... 104s Unpacking libgnutls30t64:s390x (3.8.8-2ubuntu1) over (3.8.6-2ubuntu1) ... 104s Setting up libgnutls30t64:s390x (3.8.8-2ubuntu1) ... 104s Selecting previously unselected package python3.13-gdbm. 104s (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 ... 55510 files and directories currently installed.) 104s Preparing to unpack .../0-python3.13-gdbm_3.13.0-2_s390x.deb ... 104s Unpacking python3.13-gdbm (3.13.0-2) ... 104s Preparing to unpack .../1-python3-gdbm_3.12.7-1_s390x.deb ... 104s Unpacking python3-gdbm:s390x (3.12.7-1) over (3.12.6-1ubuntu1) ... 104s Preparing to unpack .../2-libgpgme11t64_1.23.2-5ubuntu4_s390x.deb ... 104s Unpacking libgpgme11t64:s390x (1.23.2-5ubuntu4) over (1.18.0-4.1ubuntu4) ... 104s Preparing to unpack .../3-libjson-glib-1.0-common_1.10.0+ds-3_all.deb ... 104s Unpacking libjson-glib-1.0-common (1.10.0+ds-3) over (1.10.0+ds-2) ... 104s Preparing to unpack .../4-libjson-glib-1.0-0_1.10.0+ds-3_s390x.deb ... 104s Unpacking libjson-glib-1.0-0:s390x (1.10.0+ds-3) over (1.10.0+ds-2) ... 104s Preparing to unpack .../5-libutempter0_1.2.1-4_s390x.deb ... 104s Unpacking libutempter0:s390x (1.2.1-4) over (1.2.1-3build1) ... 104s Setting up libutempter0:s390x (1.2.1-4) ... 104s Setting up libjson-glib-1.0-common (1.10.0+ds-3) ... 104s Setting up libgpgme11t64:s390x (1.23.2-5ubuntu4) ... 104s Setting up python3.13-gdbm (3.13.0-2) ... 104s Setting up libpython3-stdlib:s390x (3.12.7-1) ... 104s Setting up python3 (3.12.7-1) ... 105s Setting up libjson-glib-1.0-0:s390x (1.10.0+ds-3) ... 105s Setting up python3-gdbm:s390x (3.12.7-1) ... 105s Processing triggers for man-db (2.12.1-3) ... 105s Processing triggers for libc-bin (2.40-1ubuntu3) ... 105s Reading package lists... 105s Building dependency tree... 105s Reading state information... 105s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 106s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 106s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 106s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 106s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 107s Reading package lists... 107s Reading package lists... 107s Building dependency tree... 107s Reading state information... 107s Calculating upgrade... 107s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 107s Reading package lists... 107s Building dependency tree... 107s Reading state information... 107s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 110s autopkgtest [15:39:25]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 110s autopkgtest [15:39:25]: @@@@@@@@@@@@@@@@@@@@ apt-source python-scitrack 112s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-scitrack 2024.10.8-1 (dsc) [2496 B] 112s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-scitrack 2024.10.8-1 (tar) [12.3 kB] 112s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-scitrack 2024.10.8-1 (diff) [3504 B] 112s gpgv: Signature made Wed Oct 9 20:53:37 2024 UTC 112s gpgv: using RSA key 8F91B227C7D6F2B1948C8236793CF67E8F0D11DA 112s gpgv: issuer "emollier@debian.org" 112s gpgv: Can't check signature: No public key 112s dpkg-source: warning: cannot verify inline signature for ./python-scitrack_2024.10.8-1.dsc: no acceptable signature found 112s autopkgtest [15:39:27]: testing package python-scitrack version 2024.10.8-1 112s autopkgtest [15:39:27]: build not needed 112s autopkgtest [15:39:27]: test run-unit-test: preparing testbed 117s Reading package lists... 117s Building dependency tree... 117s Reading state information... 117s Starting pkgProblemResolver with broken count: 0 117s Starting 2 pkgProblemResolver with broken count: 0 117s Done 117s The following additional packages will be installed: 117s libblas3 libgfortran5 liblapack3 libpython3.13-minimal libpython3.13-stdlib 117s python3-all python3-iniconfig python3-numpy python3-packaging python3-pluggy 117s python3-pytest python3-scitrack python3.13 python3.13-minimal 117s Suggested packages: 117s gcc gfortran python-numpy-doc python3-dev python3.13-venv python3.13-doc 117s binfmt-support 117s The following NEW packages will be installed: 117s autopkgtest-satdep libblas3 libgfortran5 liblapack3 libpython3.13-minimal 117s libpython3.13-stdlib python3-all python3-iniconfig python3-numpy 117s python3-packaging python3-pluggy python3-pytest python3-scitrack python3.13 117s python3.13-minimal 117s 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. 117s Need to get 14.1 MB/14.1 MB of archives. 117s After this operation, 56.2 MB of additional disk space will be used. 117s Get:1 /tmp/autopkgtest.FJuBm3/1-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [732 B] 118s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-minimal s390x 3.13.0-2 [877 kB] 118s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-minimal s390x 3.13.0-2 [2172 kB] 118s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libblas3 s390x 3.12.0-3build2 [238 kB] 118s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x libgfortran5 s390x 14.2.0-8ubuntu1 [587 kB] 118s Get:6 http://ftpmaster.internal/ubuntu plucky/main s390x liblapack3 s390x 3.12.0-3build2 [2953 kB] 118s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-stdlib s390x 3.13.0-2 [2086 kB] 118s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13 s390x 3.13.0-2 [719 kB] 118s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-all s390x 3.12.7-1 [890 B] 118s Get:10 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-iniconfig all 1.1.1-2 [6024 B] 118s Get:11 http://ftpmaster.internal/ubuntu plucky/main s390x python3-numpy s390x 1:1.26.4+ds-11build1 [4113 kB] 119s Get:12 http://ftpmaster.internal/ubuntu plucky/main s390x python3-packaging all 24.1-1 [41.4 kB] 119s Get:13 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pluggy all 1.5.0-1 [21.0 kB] 119s Get:14 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-pytest all 8.3.3-1 [251 kB] 119s Get:15 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-scitrack all 2024.10.8-1 [9590 B] 119s Fetched 14.1 MB in 1s (12.1 MB/s) 119s Selecting previously unselected package libpython3.13-minimal:s390x. 119s (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 ... 55517 files and directories currently installed.) 119s Preparing to unpack .../00-libpython3.13-minimal_3.13.0-2_s390x.deb ... 119s Unpacking libpython3.13-minimal:s390x (3.13.0-2) ... 119s Selecting previously unselected package python3.13-minimal. 119s Preparing to unpack .../01-python3.13-minimal_3.13.0-2_s390x.deb ... 119s Unpacking python3.13-minimal (3.13.0-2) ... 119s Selecting previously unselected package libblas3:s390x. 119s Preparing to unpack .../02-libblas3_3.12.0-3build2_s390x.deb ... 119s Unpacking libblas3:s390x (3.12.0-3build2) ... 119s Selecting previously unselected package libgfortran5:s390x. 119s Preparing to unpack .../03-libgfortran5_14.2.0-8ubuntu1_s390x.deb ... 119s Unpacking libgfortran5:s390x (14.2.0-8ubuntu1) ... 119s Selecting previously unselected package liblapack3:s390x. 119s Preparing to unpack .../04-liblapack3_3.12.0-3build2_s390x.deb ... 119s Unpacking liblapack3:s390x (3.12.0-3build2) ... 119s Selecting previously unselected package libpython3.13-stdlib:s390x. 119s Preparing to unpack .../05-libpython3.13-stdlib_3.13.0-2_s390x.deb ... 119s Unpacking libpython3.13-stdlib:s390x (3.13.0-2) ... 119s Selecting previously unselected package python3.13. 119s Preparing to unpack .../06-python3.13_3.13.0-2_s390x.deb ... 119s Unpacking python3.13 (3.13.0-2) ... 119s Selecting previously unselected package python3-all. 119s Preparing to unpack .../07-python3-all_3.12.7-1_s390x.deb ... 119s Unpacking python3-all (3.12.7-1) ... 119s Selecting previously unselected package python3-iniconfig. 119s Preparing to unpack .../08-python3-iniconfig_1.1.1-2_all.deb ... 119s Unpacking python3-iniconfig (1.1.1-2) ... 119s Selecting previously unselected package python3-numpy. 119s Preparing to unpack .../09-python3-numpy_1%3a1.26.4+ds-11build1_s390x.deb ... 119s Unpacking python3-numpy (1:1.26.4+ds-11build1) ... 119s Selecting previously unselected package python3-packaging. 119s Preparing to unpack .../10-python3-packaging_24.1-1_all.deb ... 119s Unpacking python3-packaging (24.1-1) ... 119s Selecting previously unselected package python3-pluggy. 119s Preparing to unpack .../11-python3-pluggy_1.5.0-1_all.deb ... 119s Unpacking python3-pluggy (1.5.0-1) ... 119s Selecting previously unselected package python3-pytest. 119s Preparing to unpack .../12-python3-pytest_8.3.3-1_all.deb ... 119s Unpacking python3-pytest (8.3.3-1) ... 119s Selecting previously unselected package python3-scitrack. 119s Preparing to unpack .../13-python3-scitrack_2024.10.8-1_all.deb ... 119s Unpacking python3-scitrack (2024.10.8-1) ... 119s Selecting previously unselected package autopkgtest-satdep. 119s Preparing to unpack .../14-1-autopkgtest-satdep.deb ... 119s Unpacking autopkgtest-satdep (0) ... 119s Setting up python3-iniconfig (1.1.1-2) ... 119s Setting up libpython3.13-minimal:s390x (3.13.0-2) ... 119s Setting up libblas3:s390x (3.12.0-3build2) ... 119s update-alternatives: using /usr/lib/s390x-linux-gnu/blas/libblas.so.3 to provide /usr/lib/s390x-linux-gnu/libblas.so.3 (libblas.so.3-s390x-linux-gnu) in auto mode 119s Setting up python3-packaging (24.1-1) ... 120s Setting up libgfortran5:s390x (14.2.0-8ubuntu1) ... 120s Setting up python3-pluggy (1.5.0-1) ... 120s Setting up python3-scitrack (2024.10.8-1) ... 120s Setting up python3.13-minimal (3.13.0-2) ... 121s Setting up libpython3.13-stdlib:s390x (3.13.0-2) ... 121s Setting up liblapack3:s390x (3.12.0-3build2) ... 121s update-alternatives: using /usr/lib/s390x-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/s390x-linux-gnu/liblapack.so.3 (liblapack.so.3-s390x-linux-gnu) in auto mode 121s Setting up python3.13 (3.13.0-2) ... 122s Setting up python3-pytest (8.3.3-1) ... 122s Setting up python3-all (3.12.7-1) ... 122s Setting up python3-numpy (1:1.26.4+ds-11build1) ... 127s Setting up autopkgtest-satdep (0) ... 127s Processing triggers for systemd (256.5-2ubuntu4) ... 127s Processing triggers for man-db (2.12.1-3) ... 127s Processing triggers for libc-bin (2.40-1ubuntu3) ... 128s (Reading database ... 57326 files and directories currently installed.) 128s Removing autopkgtest-satdep (0) ... 129s autopkgtest [15:39:44]: test run-unit-test: [----------------------- 129s ============================= test session starts ============================== 129s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.13 129s cachedir: .pytest_cache 129s rootdir: /tmp/autopkgtest.FJuBm3/autopkgtest_tmp 129s plugins: typeguard-4.4.1 129s collecting ... collected 22 items 129s 129s tests/test_logging.py::test_creates_path PASSED [ 4%] 129s tests/test_logging.py::test_set_path_if_exists PASSED [ 9%] 129s tests/test_logging.py::test_tracks_args PASSED [ 13%] 129s tests/test_logging.py::test_tracks_locals PASSED [ 18%] 129s tests/test_logging.py::test_tracks_locals_skip_module PASSED [ 22%] 129s tests/test_logging.py::test_package_inference PASSED [ 27%] 129s tests/test_logging.py::test_package_versioning FAILED [ 31%] 129s tests/test_logging.py::test_tracks_versions FAILED [ 36%] 129s tests/test_logging.py::test_caching FAILED [ 40%] 129s tests/test_logging.py::test_shutdown PASSED [ 45%] 129s tests/test_logging.py::test_tracks_versions_empty PASSED [ 50%] 129s tests/test_logging.py::test_tracks_versions_string FAILED [ 54%] 129s tests/test_logging.py::test_get_version_for_package FAILED [ 59%] 129s tests/test_logging.py::test_tracks_versions_module FAILED [ 63%] 129s tests/test_logging.py::test_appending PASSED [ 68%] 129s tests/test_logging.py::test_mdsum_input PASSED [ 72%] 129s tests/test_logging.py::test_mdsum_output PASSED [ 77%] 129s tests/test_logging.py::test_logging_text PASSED [ 81%] 129s tests/test_logging.py::test_logfile_path PASSED [ 86%] 129s tests/test_logging.py::test_md5sum_text PASSED [ 90%] 129s tests/test_logging.py::test_get_text_hexdigest_invalid PASSED [ 95%] 129s tests/test_logging.py::test_read_from_written PASSED [100%] 129s 129s =================================== FAILURES =================================== 129s ___________________________ test_package_versioning ____________________________ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s > from . import multiarray 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 129s from . import overrides 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """Implementation of __array_function__ overrides from NEP-18.""" 129s import collections 129s import functools 129s import os 129s 129s from .._utils import set_module 129s from .._utils._inspect import getargspec 129s > from numpy.core._multiarray_umath import ( 129s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 129s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 129s 129s During handling of the above exception, another exception occurred: 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s > from numpy.__config__ import show as show_config 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 129s from numpy.core._multiarray_umath import ( 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s from . import multiarray 129s except ImportError as exc: 129s import sys 129s msg = """ 129s 129s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s 129s Importing the numpy C-extensions failed. This error can happen for 129s many reasons, often due to issues with your setup or how NumPy was 129s installed. 129s 129s We have compiled some common reasons and troubleshooting tips at: 129s 129s https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s 129s Please note and check the following: 129s 129s * The Python version is: Python%d.%d from "%s" 129s * The NumPy version is: "%s" 129s 129s and make sure that they are the versions you expect. 129s Please carefully study the documentation linked above for further help. 129s 129s Original error was: %s 129s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 129s __version__, exc) 129s > raise ImportError(msg) 129s E ImportError: 129s E 129s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s E 129s E Importing the numpy C-extensions failed. This error can happen for 129s E many reasons, often due to issues with your setup or how NumPy was 129s E installed. 129s E 129s E We have compiled some common reasons and troubleshooting tips at: 129s E 129s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s E 129s E Please note and check the following: 129s E 129s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 129s E * The NumPy version is: "1.26.4" 129s E 129s E and make sure that they are the versions you expect. 129s E Please carefully study the documentation linked above for further help. 129s E 129s E Original error was: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 129s 129s The above exception was the direct cause of the following exception: 129s 129s def test_package_versioning(): 129s """correctly identify versions for specified packages""" 129s > vn = get_version_for_package("numpy") 129s 129s tests/test_logging.py:109: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/scitrack/__init__.py:45: in get_version_for_package 129s mod = importlib.import_module(package) 129s /usr/lib/python3.13/importlib/__init__.py:88: in import_module 129s return _bootstrap._gcd_import(name[level:], package, level) 129s :1387: in _gcd_import 129s ??? 129s :1360: in _find_and_load 129s ??? 129s :1331: in _find_and_load_unlocked 129s ??? 129s :935: in _load_unlocked 129s ??? 129s :1022: in exec_module 129s ??? 129s :488: in _call_with_frames_removed 129s ??? 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s from numpy.__config__ import show as show_config 129s except ImportError as e: 129s msg = """Error importing numpy: you should not try to import numpy from 129s its source directory; please exit the numpy source tree, and relaunch 129s your python interpreter from there.""" 129s > raise ImportError(msg) from e 129s E ImportError: Error importing numpy: you should not try to import numpy from 129s E its source directory; please exit the numpy source tree, and relaunch 129s E your python interpreter from there. 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 129s _____________________________ test_tracks_versions _____________________________ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s > from . import multiarray 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 129s from . import overrides 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """Implementation of __array_function__ overrides from NEP-18.""" 129s import collections 129s import functools 129s import os 129s 129s from .._utils import set_module 129s from .._utils._inspect import getargspec 129s > from numpy.core._multiarray_umath import ( 129s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 129s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 129s 129s During handling of the above exception, another exception occurred: 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s > from numpy.__config__ import show as show_config 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 129s from numpy.core._multiarray_umath import ( 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s from . import multiarray 129s except ImportError as exc: 129s import sys 129s msg = """ 129s 129s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s 129s Importing the numpy C-extensions failed. This error can happen for 129s many reasons, often due to issues with your setup or how NumPy was 129s installed. 129s 129s We have compiled some common reasons and troubleshooting tips at: 129s 129s https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s 129s Please note and check the following: 129s 129s * The Python version is: Python%d.%d from "%s" 129s * The NumPy version is: "%s" 129s 129s and make sure that they are the versions you expect. 129s Please carefully study the documentation linked above for further help. 129s 129s Original error was: %s 129s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 129s __version__, exc) 129s > raise ImportError(msg) 129s E ImportError: 129s E 129s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s E 129s E Importing the numpy C-extensions failed. This error can happen for 129s E many reasons, often due to issues with your setup or how NumPy was 129s E installed. 129s E 129s E We have compiled some common reasons and troubleshooting tips at: 129s E 129s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s E 129s E Please note and check the following: 129s E 129s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 129s E * The NumPy version is: "1.26.4" 129s E 129s E and make sure that they are the versions you expect. 129s E Please carefully study the documentation linked above for further help. 129s E 129s E Original error was: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 129s 129s The above exception was the direct cause of the following exception: 129s 129s logfile = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_tracks_versions0/delme.log') 129s 129s def test_tracks_versions(logfile): 129s """should track versions""" 129s LOGGER = CachingLogger(create_dir=True) 129s LOGGER.log_file_path = logfile 129s LOGGER.input_file(TEST_ROOTDIR / "sample-lf.fasta") 129s > LOGGER.log_versions(["numpy"]) 129s 129s tests/test_logging.py:122: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/scitrack/__init__.py:226: in log_versions 129s vn = get_version_for_package(package) 129s /usr/lib/python3/dist-packages/scitrack/__init__.py:45: in get_version_for_package 129s mod = importlib.import_module(package) 129s /usr/lib/python3.13/importlib/__init__.py:88: in import_module 129s return _bootstrap._gcd_import(name[level:], package, level) 129s :1387: in _gcd_import 129s ??? 129s :1360: in _find_and_load 129s ??? 129s :1331: in _find_and_load_unlocked 129s ??? 129s :935: in _load_unlocked 129s ??? 129s :1022: in exec_module 129s ??? 129s :488: in _call_with_frames_removed 129s ??? 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s from numpy.__config__ import show as show_config 129s except ImportError as e: 129s msg = """Error importing numpy: you should not try to import numpy from 129s its source directory; please exit the numpy source tree, and relaunch 129s your python interpreter from there.""" 129s > raise ImportError(msg) from e 129s E ImportError: Error importing numpy: you should not try to import numpy from 129s E its source directory; please exit the numpy source tree, and relaunch 129s E your python interpreter from there. 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 129s ------------------------------ Captured log call ------------------------------- 129s INFO root:__init__.py:243 system_details : system=#8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 129s INFO root:__init__.py:244 python : 3.13.0 129s INFO root:__init__.py:245 user : ubuntu 129s INFO root:__init__.py:246 command_string : /usr/lib/python3/dist-packages/pytest/__main__.py -v 129s INFO root:__init__.py:179 input_file_path : /tmp/autopkgtest.FJuBm3/autopkgtest_tmp/tests/sample-lf.fasta 129s INFO root:__init__.py:179 input_file_path md5sum : 96eb2c2632bae19eb65ea9224aaafdad 129s _________________________________ test_caching _________________________________ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s > from . import multiarray 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 129s from . import overrides 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """Implementation of __array_function__ overrides from NEP-18.""" 129s import collections 129s import functools 129s import os 129s 129s from .._utils import set_module 129s from .._utils._inspect import getargspec 129s > from numpy.core._multiarray_umath import ( 129s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 129s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 129s 129s During handling of the above exception, another exception occurred: 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s > from numpy.__config__ import show as show_config 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 129s from numpy.core._multiarray_umath import ( 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s from . import multiarray 129s except ImportError as exc: 129s import sys 129s msg = """ 129s 129s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s 129s Importing the numpy C-extensions failed. This error can happen for 129s many reasons, often due to issues with your setup or how NumPy was 129s installed. 129s 129s We have compiled some common reasons and troubleshooting tips at: 129s 129s https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s 129s Please note and check the following: 129s 129s * The Python version is: Python%d.%d from "%s" 129s * The NumPy version is: "%s" 129s 129s and make sure that they are the versions you expect. 129s Please carefully study the documentation linked above for further help. 129s 129s Original error was: %s 129s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 129s __version__, exc) 129s > raise ImportError(msg) 129s E ImportError: 129s E 129s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s E 129s E Importing the numpy C-extensions failed. This error can happen for 129s E many reasons, often due to issues with your setup or how NumPy was 129s E installed. 129s E 129s E We have compiled some common reasons and troubleshooting tips at: 129s E 129s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s E 129s E Please note and check the following: 129s E 129s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 129s E * The NumPy version is: "1.26.4" 129s E 129s E and make sure that they are the versions you expect. 129s E Please carefully study the documentation linked above for further help. 129s E 129s E Original error was: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 129s 129s The above exception was the direct cause of the following exception: 129s 129s logfile = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_caching0/delme.log') 129s 129s def test_caching(logfile): 129s """should cache calls prior to logging""" 129s LOGGER = CachingLogger(create_dir=True) 129s LOGGER.input_file(TEST_ROOTDIR / "sample-lf.fasta") 129s assert ( 129s "sample-lf.fasta" in LOGGER._messages[-2] and "md5sum" in LOGGER._messages[-1] 129s ) 129s > LOGGER.log_versions(["numpy"]) 129s 129s tests/test_logging.py:145: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/scitrack/__init__.py:226: in log_versions 129s vn = get_version_for_package(package) 129s /usr/lib/python3/dist-packages/scitrack/__init__.py:45: in get_version_for_package 129s mod = importlib.import_module(package) 129s /usr/lib/python3.13/importlib/__init__.py:88: in import_module 129s return _bootstrap._gcd_import(name[level:], package, level) 129s :1387: in _gcd_import 129s ??? 129s :1360: in _find_and_load 129s ??? 129s :1331: in _find_and_load_unlocked 129s ??? 129s :935: in _load_unlocked 129s ??? 129s :1022: in exec_module 129s ??? 129s :488: in _call_with_frames_removed 129s ??? 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s from numpy.__config__ import show as show_config 129s except ImportError as e: 129s msg = """Error importing numpy: you should not try to import numpy from 129s its source directory; please exit the numpy source tree, and relaunch 129s your python interpreter from there.""" 129s > raise ImportError(msg) from e 129s E ImportError: Error importing numpy: you should not try to import numpy from 129s E its source directory; please exit the numpy source tree, and relaunch 129s E your python interpreter from there. 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 129s _________________________ test_tracks_versions_string __________________________ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s > from . import multiarray 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 129s from . import overrides 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """Implementation of __array_function__ overrides from NEP-18.""" 129s import collections 129s import functools 129s import os 129s 129s from .._utils import set_module 129s from .._utils._inspect import getargspec 129s > from numpy.core._multiarray_umath import ( 129s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 129s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 129s 129s During handling of the above exception, another exception occurred: 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s > from numpy.__config__ import show as show_config 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 129s from numpy.core._multiarray_umath import ( 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s from . import multiarray 129s except ImportError as exc: 129s import sys 129s msg = """ 129s 129s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s 129s Importing the numpy C-extensions failed. This error can happen for 129s many reasons, often due to issues with your setup or how NumPy was 129s installed. 129s 129s We have compiled some common reasons and troubleshooting tips at: 129s 129s https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s 129s Please note and check the following: 129s 129s * The Python version is: Python%d.%d from "%s" 129s * The NumPy version is: "%s" 129s 129s and make sure that they are the versions you expect. 129s Please carefully study the documentation linked above for further help. 129s 129s Original error was: %s 129s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 129s __version__, exc) 129s > raise ImportError(msg) 129s E ImportError: 129s E 129s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s E 129s E Importing the numpy C-extensions failed. This error can happen for 129s E many reasons, often due to issues with your setup or how NumPy was 129s E installed. 129s E 129s E We have compiled some common reasons and troubleshooting tips at: 129s E 129s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s E 129s E Please note and check the following: 129s E 129s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 129s E * The NumPy version is: "1.26.4" 129s E 129s E and make sure that they are the versions you expect. 129s E Please carefully study the documentation linked above for further help. 129s E 129s E Original error was: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 129s 129s The above exception was the direct cause of the following exception: 129s 129s logfile = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_tracks_versions_string0/delme.log') 129s 129s def test_tracks_versions_string(logfile): 129s """should track version if package name is a string""" 129s LOGGER = CachingLogger(create_dir=True) 129s LOGGER.log_file_path = logfile 129s > LOGGER.log_versions("numpy") 129s 129s tests/test_logging.py:182: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/scitrack/__init__.py:226: in log_versions 129s vn = get_version_for_package(package) 129s /usr/lib/python3/dist-packages/scitrack/__init__.py:45: in get_version_for_package 129s mod = importlib.import_module(package) 129s /usr/lib/python3.13/importlib/__init__.py:88: in import_module 129s return _bootstrap._gcd_import(name[level:], package, level) 129s :1387: in _gcd_import 129s ??? 129s :1360: in _find_and_load 129s ??? 129s :1331: in _find_and_load_unlocked 129s ??? 129s :935: in _load_unlocked 129s ??? 129s :1022: in exec_module 129s ??? 129s :488: in _call_with_frames_removed 129s ??? 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s from numpy.__config__ import show as show_config 129s except ImportError as e: 129s msg = """Error importing numpy: you should not try to import numpy from 129s its source directory; please exit the numpy source tree, and relaunch 129s your python interpreter from there.""" 129s > raise ImportError(msg) from e 129s E ImportError: Error importing numpy: you should not try to import numpy from 129s E its source directory; please exit the numpy source tree, and relaunch 129s E your python interpreter from there. 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 129s ------------------------------ Captured log call ------------------------------- 129s INFO root:__init__.py:243 system_details : system=#8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 129s INFO root:__init__.py:244 python : 3.13.0 129s INFO root:__init__.py:245 user : ubuntu 129s INFO root:__init__.py:246 command_string : /usr/lib/python3/dist-packages/pytest/__main__.py -v 129s _________________________ test_get_version_for_package _________________________ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s > from . import multiarray 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 129s from . import overrides 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """Implementation of __array_function__ overrides from NEP-18.""" 129s import collections 129s import functools 129s import os 129s 129s from .._utils import set_module 129s from .._utils._inspect import getargspec 129s > from numpy.core._multiarray_umath import ( 129s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 129s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 129s 129s During handling of the above exception, another exception occurred: 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s > from numpy.__config__ import show as show_config 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 129s from numpy.core._multiarray_umath import ( 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s from . import multiarray 129s except ImportError as exc: 129s import sys 129s msg = """ 129s 129s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s 129s Importing the numpy C-extensions failed. This error can happen for 129s many reasons, often due to issues with your setup or how NumPy was 129s installed. 129s 129s We have compiled some common reasons and troubleshooting tips at: 129s 129s https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s 129s Please note and check the following: 129s 129s * The Python version is: Python%d.%d from "%s" 129s * The NumPy version is: "%s" 129s 129s and make sure that they are the versions you expect. 129s Please carefully study the documentation linked above for further help. 129s 129s Original error was: %s 129s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 129s __version__, exc) 129s > raise ImportError(msg) 129s E ImportError: 129s E 129s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s E 129s E Importing the numpy C-extensions failed. This error can happen for 129s E many reasons, often due to issues with your setup or how NumPy was 129s E installed. 129s E 129s E We have compiled some common reasons and troubleshooting tips at: 129s E 129s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s E 129s E Please note and check the following: 129s E 129s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 129s E * The NumPy version is: "1.26.4" 129s E 129s E and make sure that they are the versions you expect. 129s E Please carefully study the documentation linked above for further help. 129s E 129s E Original error was: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 129s 129s The above exception was the direct cause of the following exception: 129s 129s def test_get_version_for_package(): 129s """should track version if package is a module""" 129s > import numpy 129s 129s tests/test_logging.py:195: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s from numpy.__config__ import show as show_config 129s except ImportError as e: 129s msg = """Error importing numpy: you should not try to import numpy from 129s its source directory; please exit the numpy source tree, and relaunch 129s your python interpreter from there.""" 129s > raise ImportError(msg) from e 129s E ImportError: Error importing numpy: you should not try to import numpy from 129s E its source directory; please exit the numpy source tree, and relaunch 129s E your python interpreter from there. 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 129s _________________________ test_tracks_versions_module __________________________ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s > from . import multiarray 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 129s from . import overrides 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """Implementation of __array_function__ overrides from NEP-18.""" 129s import collections 129s import functools 129s import os 129s 129s from .._utils import set_module 129s from .._utils._inspect import getargspec 129s > from numpy.core._multiarray_umath import ( 129s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 129s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 129s 129s During handling of the above exception, another exception occurred: 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 129s 129s 129s # If a version with git hash was stored, use that instead 129s from . import version 129s from .version import __version__ 129s 129s # We first need to detect if we're being called as part of the numpy setup 129s # procedure itself in a reliable manner. 129s try: 129s __NUMPY_SETUP__ 129s except NameError: 129s __NUMPY_SETUP__ = False 129s 129s if __NUMPY_SETUP__: 129s sys.stderr.write('Running from numpy source directory.\n') 129s else: 129s # Allow distributors to run custom init code before importing numpy.core 129s from . import _distributor_init 129s 129s try: 129s > from numpy.__config__ import show as show_config 129s 129s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 129s from numpy.core._multiarray_umath import ( 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 129s 129s Please note that this module is private. All functions and objects 129s are available in the main ``numpy`` namespace - use that instead. 129s 129s """ 129s 129s import os 129s import warnings 129s 129s from numpy.version import version as __version__ 129s 129s 129s # disables OpenBLAS affinity setting of the main thread that limits 129s # python threads or processes to one core 129s env_added = [] 129s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 129s if envkey not in os.environ: 129s os.environ[envkey] = '1' 129s env_added.append(envkey) 129s 129s try: 129s from . import multiarray 129s except ImportError as exc: 129s import sys 129s msg = """ 129s 129s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s 129s Importing the numpy C-extensions failed. This error can happen for 129s many reasons, often due to issues with your setup or how NumPy was 129s installed. 129s 129s We have compiled some common reasons and troubleshooting tips at: 129s 129s https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s 129s Please note and check the following: 129s 129s * The Python version is: Python%d.%d from "%s" 129s * The NumPy version is: "%s" 129s 129s and make sure that they are the versions you expect. 129s Please carefully study the documentation linked above for further help. 129s 129s Original error was: %s 129s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 129s __version__, exc) 129s > raise ImportError(msg) 129s E ImportError: 129s E 129s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 129s E 129s E Importing the numpy C-extensions failed. This error can happen for 129s E many reasons, often due to issues with your setup or how NumPy was 129s E installed. 129s E 129s E We have compiled some common reasons and troubleshooting tips at: 129s E 129s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 129s E 129s E Please note and check the following: 129s E 129s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 129s E * The NumPy version is: "1.26.4" 129s E 129s E and make sure that they are the versions you expect. 129s E Please carefully study the documentation linked above for further help. 129s E 129s E Original error was: No module named 'numpy.core._multiarray_umath' 129s 129s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 129s 129s The above exception was the direct cause of the following exception: 129s 129s logfile = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_tracks_versions_module0/delme.log') 129s 129s def test_tracks_versions_module(logfile): 129s """should track version if package is a module""" 129s LOGGER = CachingLogger(create_dir=True) 129s LOGGER.log_file_path = logfile 129s > import numpy 129s 129s tests/test_logging.py:222: 129s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 129s 129s """ 129s NumPy 129s ===== 129s 129s Provides 129s 1. An array object of arbitrary homogeneous items 129s 2. Fast mathematical operations over arrays 129s 3. Linear Algebra, Fourier Transforms, Random Number Generation 129s 129s How to use the documentation 129s ---------------------------- 129s Documentation is available in two forms: docstrings provided 129s with the code, and a loose standing reference guide, available from 129s `the NumPy homepage `_. 129s 129s We recommend exploring the docstrings using 129s `IPython `_, an advanced Python shell with 129s TAB-completion and introspection capabilities. See below for further 129s instructions. 129s 129s The docstring examples assume that `numpy` has been imported as ``np``:: 129s 129s >>> import numpy as np 129s 129s Code snippets are indicated by three greater-than signs:: 129s 129s >>> x = 42 129s >>> x = x + 1 129s 129s Use the built-in ``help`` function to view a function's docstring:: 129s 129s >>> help(np.sort) 129s ... # doctest: +SKIP 129s 129s For some objects, ``np.info(obj)`` may provide additional help. This is 129s particularly true if you see the line "Help on ufunc object:" at the top 129s of the help() page. Ufuncs are implemented in C, not Python, for speed. 129s The native Python help() does not know how to view their help, but our 129s np.info() function does. 129s 129s To search for documents containing a keyword, do:: 129s 129s >>> np.lookfor('keyword') 129s ... # doctest: +SKIP 129s 129s General-purpose documents like a glossary and help on the basic concepts 129s of numpy are available under the ``doc`` sub-module:: 129s 129s >>> from numpy import doc 129s >>> help(doc) 129s ... # doctest: +SKIP 129s 129s Available subpackages 129s --------------------- 129s lib 129s Basic functions used by several sub-packages. 129s random 129s Core Random Tools 129s linalg 129s Core Linear Algebra Tools 129s fft 129s Core FFT routines 129s polynomial 129s Polynomial tools 129s testing 129s NumPy testing tools 129s distutils 129s Enhancements to distutils with support for 129s Fortran compilers support and more (for Python <= 3.11). 129s 129s Utilities 129s --------- 129s test 129s Run numpy unittests 129s show_config 129s Show numpy build configuration 129s matlib 129s Make everything matrices. 129s __version__ 129s NumPy version string 129s 129s Viewing documentation using IPython 129s ----------------------------------- 129s 129s Start IPython and import `numpy` usually under the alias ``np``: `import 129s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 129s examples into the shell. To see which functions are available in `numpy`, 129s type ``np.`` (where ```` refers to the TAB key), or use 129s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 129s down the list. To view the docstring for a function, use 129s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 129s the source code). 129s 129s Copies vs. in-place operation 129s ----------------------------- 129s Most of the functions in `numpy` return a copy of the array argument 129s (e.g., `np.sort`). In-place versions of these functions are often 129s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 129s Exceptions to this rule are documented. 129s 129s """ 129s import sys 129s import warnings 129s 129s from ._globals import _NoValue, _CopyMode 129s # These exceptions were moved in 1.25 and are hidden from __dir__() 129s from .exceptions import ( 129s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 129s TooHardError, AxisError) 130s 130s 130s # If a version with git hash was stored, use that instead 130s from . import version 130s from .version import __version__ 130s 130s # We first need to detect if we're being called as part of the numpy setup 130s # procedure itself in a reliable manner. 130s try: 130s __NUMPY_SETUP__ 130s except NameError: 130s __NUMPY_SETUP__ = False 130s 130s if __NUMPY_SETUP__: 130s sys.stderr.write('Running from numpy source directory.\n') 130s else: 130s # Allow distributors to run custom init code before importing numpy.core 130s from . import _distributor_init 130s 130s try: 130s from numpy.__config__ import show as show_config 130s except ImportError as e: 130s msg = """Error importing numpy: you should not try to import numpy from 130s its source directory; please exit the numpy source tree, and relaunch 130s your python interpreter from there.""" 130s > raise ImportError(msg) from e 130s E ImportError: Error importing numpy: you should not try to import numpy from 130s E its source directory; please exit the numpy source tree, and relaunch 130s E your python interpreter from there. 130s 130s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 130s ------------------------------ Captured log call ------------------------------- 130s INFO root:__init__.py:243 system_details : system=#8-Ubuntu SMP Mon Sep 16 12:49:35 UTC 2024 130s INFO root:__init__.py:244 python : 3.13.0 130s INFO root:__init__.py:245 user : ubuntu 130s INFO root:__init__.py:246 command_string : /usr/lib/python3/dist-packages/pytest/__main__.py -v 130s =========================== short test summary info ============================ 130s FAILED tests/test_logging.py::test_package_versioning - ImportError: Error im... 130s FAILED tests/test_logging.py::test_tracks_versions - ImportError: Error impor... 130s FAILED tests/test_logging.py::test_caching - ImportError: Error importing num... 130s FAILED tests/test_logging.py::test_tracks_versions_string - ImportError: Erro... 130s FAILED tests/test_logging.py::test_get_version_for_package - ImportError: Err... 130s FAILED tests/test_logging.py::test_tracks_versions_module - ImportError: Erro... 130s ========================= 6 failed, 16 passed in 0.21s ========================= 130s autopkgtest [15:39:45]: test run-unit-test: -----------------------] 130s autopkgtest [15:39:45]: test run-unit-test: - - - - - - - - - - results - - - - - - - - - - 130s run-unit-test FAIL non-zero exit status 1 131s autopkgtest [15:39:46]: test autodep8-python3: preparing testbed 244s autopkgtest [15:41:39]: testbed dpkg architecture: s390x 244s autopkgtest [15:41:39]: testbed apt version: 2.9.8 244s autopkgtest [15:41:39]: @@@@@@@@@@@@@@@@@@@@ test bed setup 245s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 245s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 245s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [104 kB] 245s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [17.2 kB] 245s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [950 kB] 245s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x Packages [110 kB] 245s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/universe s390x Packages [636 kB] 245s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse s390x Packages [17.8 kB] 245s Fetched 1916 kB in 1s (2293 kB/s) 245s Reading package lists... 248s Reading package lists... 248s Building dependency tree... 248s Reading state information... 248s Calculating upgrade... 248s The following NEW packages will be installed: 248s python3.13-gdbm 248s The following packages will be upgraded: 248s libgnutls30t64 libgpgme11t64 libjson-glib-1.0-0 libjson-glib-1.0-common 248s libpython3-stdlib libutempter0 python3 python3-gdbm python3-minimal 248s 9 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 248s Need to get 1285 kB of archives. 248s After this operation, 103 kB of additional disk space will be used. 248s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-minimal s390x 3.12.7-1 [27.4 kB] 248s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3 s390x 3.12.7-1 [24.0 kB] 248s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x libpython3-stdlib s390x 3.12.7-1 [10.0 kB] 248s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libgnutls30t64 s390x 3.8.8-2ubuntu1 [950 kB] 249s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-gdbm s390x 3.13.0-2 [31.0 kB] 249s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-gdbm s390x 3.12.7-1 [8642 B] 249s Get:7 http://ftpmaster.internal/ubuntu plucky/main s390x libgpgme11t64 s390x 1.23.2-5ubuntu4 [151 kB] 249s Get:8 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-glib-1.0-common all 1.10.0+ds-3 [5586 B] 249s Get:9 http://ftpmaster.internal/ubuntu plucky/main s390x libjson-glib-1.0-0 s390x 1.10.0+ds-3 [67.5 kB] 249s Get:10 http://ftpmaster.internal/ubuntu plucky/main s390x libutempter0 s390x 1.2.1-4 [9708 B] 249s Fetched 1285 kB in 1s (1043 kB/s) 249s (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 ... 55510 files and directories currently installed.) 249s Preparing to unpack .../python3-minimal_3.12.7-1_s390x.deb ... 249s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 249s Setting up python3-minimal (3.12.7-1) ... 249s (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 ... 55510 files and directories currently installed.) 249s Preparing to unpack .../python3_3.12.7-1_s390x.deb ... 249s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 249s Preparing to unpack .../libpython3-stdlib_3.12.7-1_s390x.deb ... 249s Unpacking libpython3-stdlib:s390x (3.12.7-1) over (3.12.6-0ubuntu1) ... 249s Preparing to unpack .../libgnutls30t64_3.8.8-2ubuntu1_s390x.deb ... 249s Unpacking libgnutls30t64:s390x (3.8.8-2ubuntu1) over (3.8.6-2ubuntu1) ... 250s Setting up libgnutls30t64:s390x (3.8.8-2ubuntu1) ... 250s Selecting previously unselected package python3.13-gdbm. 250s (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 ... 55510 files and directories currently installed.) 250s Preparing to unpack .../0-python3.13-gdbm_3.13.0-2_s390x.deb ... 250s Unpacking python3.13-gdbm (3.13.0-2) ... 250s Preparing to unpack .../1-python3-gdbm_3.12.7-1_s390x.deb ... 250s Unpacking python3-gdbm:s390x (3.12.7-1) over (3.12.6-1ubuntu1) ... 250s Preparing to unpack .../2-libgpgme11t64_1.23.2-5ubuntu4_s390x.deb ... 250s Unpacking libgpgme11t64:s390x (1.23.2-5ubuntu4) over (1.18.0-4.1ubuntu4) ... 250s Preparing to unpack .../3-libjson-glib-1.0-common_1.10.0+ds-3_all.deb ... 250s Unpacking libjson-glib-1.0-common (1.10.0+ds-3) over (1.10.0+ds-2) ... 250s Preparing to unpack .../4-libjson-glib-1.0-0_1.10.0+ds-3_s390x.deb ... 250s Unpacking libjson-glib-1.0-0:s390x (1.10.0+ds-3) over (1.10.0+ds-2) ... 250s Preparing to unpack .../5-libutempter0_1.2.1-4_s390x.deb ... 250s Unpacking libutempter0:s390x (1.2.1-4) over (1.2.1-3build1) ... 250s Setting up libutempter0:s390x (1.2.1-4) ... 250s Setting up libjson-glib-1.0-common (1.10.0+ds-3) ... 250s Setting up libgpgme11t64:s390x (1.23.2-5ubuntu4) ... 250s Setting up python3.13-gdbm (3.13.0-2) ... 250s Setting up libpython3-stdlib:s390x (3.12.7-1) ... 250s Setting up python3 (3.12.7-1) ... 250s Setting up libjson-glib-1.0-0:s390x (1.10.0+ds-3) ... 250s Setting up python3-gdbm:s390x (3.12.7-1) ... 250s Processing triggers for man-db (2.12.1-3) ... 250s Processing triggers for libc-bin (2.40-1ubuntu3) ... 250s Reading package lists... 251s Building dependency tree... 251s Reading state information... 251s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 251s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 251s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 251s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 251s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 252s Reading package lists... 252s Reading package lists... 252s Building dependency tree... 252s Reading state information... 252s Calculating upgrade... 252s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 252s Reading package lists... 253s Building dependency tree... 253s Reading state information... 253s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 256s Reading package lists... 256s Building dependency tree... 256s Reading state information... 257s Starting pkgProblemResolver with broken count: 0 257s Starting 2 pkgProblemResolver with broken count: 0 257s Done 257s The following additional packages will be installed: 257s libpython3.13-minimal libpython3.13-stdlib python3-all python3-scitrack 257s python3.13 python3.13-minimal 257s Suggested packages: 257s python3.13-venv python3.13-doc binfmt-support 257s The following NEW packages will be installed: 257s autopkgtest-satdep libpython3.13-minimal libpython3.13-stdlib python3-all 257s python3-scitrack python3.13 python3.13-minimal 257s 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. 257s Need to get 5865 kB/5866 kB of archives. 257s After this operation, 22.5 MB of additional disk space will be used. 257s Get:1 /tmp/autopkgtest.FJuBm3/2-autopkgtest-satdep.deb autopkgtest-satdep s390x 0 [720 B] 257s Get:2 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-minimal s390x 3.13.0-2 [877 kB] 258s Get:3 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13-minimal s390x 3.13.0-2 [2172 kB] 259s Get:4 http://ftpmaster.internal/ubuntu plucky/main s390x libpython3.13-stdlib s390x 3.13.0-2 [2086 kB] 259s Get:5 http://ftpmaster.internal/ubuntu plucky/main s390x python3.13 s390x 3.13.0-2 [719 kB] 259s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main s390x python3-all s390x 3.12.7-1 [890 B] 259s Get:7 http://ftpmaster.internal/ubuntu plucky/universe s390x python3-scitrack all 2024.10.8-1 [9590 B] 260s Fetched 5865 kB in 3s (2219 kB/s) 260s Selecting previously unselected package libpython3.13-minimal:s390x. 260s (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 ... 55517 files and directories currently installed.) 260s Preparing to unpack .../0-libpython3.13-minimal_3.13.0-2_s390x.deb ... 260s Unpacking libpython3.13-minimal:s390x (3.13.0-2) ... 260s Selecting previously unselected package python3.13-minimal. 260s Preparing to unpack .../1-python3.13-minimal_3.13.0-2_s390x.deb ... 260s Unpacking python3.13-minimal (3.13.0-2) ... 260s Selecting previously unselected package libpython3.13-stdlib:s390x. 260s Preparing to unpack .../2-libpython3.13-stdlib_3.13.0-2_s390x.deb ... 260s Unpacking libpython3.13-stdlib:s390x (3.13.0-2) ... 260s Selecting previously unselected package python3.13. 260s Preparing to unpack .../3-python3.13_3.13.0-2_s390x.deb ... 260s Unpacking python3.13 (3.13.0-2) ... 260s Selecting previously unselected package python3-all. 260s Preparing to unpack .../4-python3-all_3.12.7-1_s390x.deb ... 260s Unpacking python3-all (3.12.7-1) ... 260s Selecting previously unselected package python3-scitrack. 260s Preparing to unpack .../5-python3-scitrack_2024.10.8-1_all.deb ... 260s Unpacking python3-scitrack (2024.10.8-1) ... 260s Selecting previously unselected package autopkgtest-satdep. 260s Preparing to unpack .../6-2-autopkgtest-satdep.deb ... 260s Unpacking autopkgtest-satdep (0) ... 260s Setting up libpython3.13-minimal:s390x (3.13.0-2) ... 260s Setting up python3-scitrack (2024.10.8-1) ... 260s Setting up python3.13-minimal (3.13.0-2) ... 261s Setting up libpython3.13-stdlib:s390x (3.13.0-2) ... 261s Setting up python3.13 (3.13.0-2) ... 262s Setting up python3-all (3.12.7-1) ... 262s Setting up autopkgtest-satdep (0) ... 262s Processing triggers for man-db (2.12.1-3) ... 262s Processing triggers for systemd (256.5-2ubuntu4) ... 264s (Reading database ... 56261 files and directories currently installed.) 264s Removing autopkgtest-satdep (0) ... 265s autopkgtest [15:42:00]: test autodep8-python3: set -e ; for py in $(py3versions -r 2>/dev/null) ; do cd "$AUTOPKGTEST_TMP" ; echo "Testing with $py:" ; $py -c "import scitrack; print(scitrack)" ; done 265s autopkgtest [15:42:00]: test autodep8-python3: [----------------------- 265s Testing with python3.13: 265s 265s Testing with python3.12: 265s 266s autopkgtest [15:42:01]: test autodep8-python3: -----------------------] 266s autopkgtest [15:42:01]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - - 266s autodep8-python3 PASS (superficial) 267s autopkgtest [15:42:02]: @@@@@@@@@@@@@@@@@@@@ summary 267s run-unit-test FAIL non-zero exit status 1 267s autodep8-python3 PASS (superficial) 278s nova [W] Using flock in prodstack6-s390x 278s flock: timeout while waiting to get lock 278s Creating nova instance adt-plucky-s390x-python-scitrack-20241113-153735-juju-7f2275-prod-proposed-migration-environment-15-98664a4e-744c-4e93-a776-15535fe54257 from image adt/ubuntu-plucky-s390x-server-20241113.img (UUID e740277e-1f72-40ae-bfbe-46030537c71c)... 278s nova [W] Using flock in prodstack6-s390x 278s Creating nova instance adt-plucky-s390x-python-scitrack-20241113-153735-juju-7f2275-prod-proposed-migration-environment-15-98664a4e-744c-4e93-a776-15535fe54257 from image adt/ubuntu-plucky-s390x-server-20241113.img (UUID e740277e-1f72-40ae-bfbe-46030537c71c)...