0s autopkgtest [09:07:17]: starting date and time: 2024-11-13 09:07:17+0000 0s autopkgtest [09:07:17]: git checkout: 0acbae0a WIP show VirtSubproc stderr in real-time 0s autopkgtest [09:07:17]: host juju-7f2275-prod-proposed-migration-environment-2; command line: /home/ubuntu/autopkgtest/runner/autopkgtest --output-dir /tmp/autopkgtest-work.6qrabdmv/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 --security-groups autopkgtest-juju-7f2275-prod-proposed-migration-environment-2@bos03-arm64-7.secgroup --name adt-plucky-arm64-python-scitrack-20241113-090717-juju-7f2275-prod-proposed-migration-environment-2-98a5b19d-e00c-445e-bbe7-5414c38e78b2 --image adt/ubuntu-plucky-arm64-server --keyname testbed-juju-7f2275-prod-proposed-migration-environment-2 --net-id=net_prod-proposed-migration -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/ 72s autopkgtest [09:08:29]: testbed dpkg architecture: arm64 72s autopkgtest [09:08:29]: testbed apt version: 2.9.8 72s autopkgtest [09:08:29]: @@@@@@@@@@@@@@@@@@@@ test bed setup 73s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 73s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.4 kB] 73s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 73s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 73s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [849 kB] 73s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [104 kB] 73s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 Packages [50.3 kB] 73s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [601 kB] 73s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [17.1 kB] 73s Fetched 1793 kB in 1s (2151 kB/s) 74s Reading package lists... 76s Reading package lists... 77s Building dependency tree... 77s Reading state information... 77s Calculating upgrade... 78s The following NEW packages will be installed: 78s python3.13-gdbm 78s The following packages will be upgraded: 78s libpython3-stdlib python3 python3-gdbm python3-minimal 78s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 78s Need to get 101 kB of archives. 78s After this operation, 141 kB of additional disk space will be used. 78s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-minimal arm64 3.12.7-1 [27.4 kB] 78s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3 arm64 3.12.7-1 [24.0 kB] 78s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libpython3-stdlib arm64 3.12.7-1 [10.0 kB] 78s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.13-gdbm arm64 3.13.0-2 [30.7 kB] 79s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-gdbm arm64 3.12.7-1 [8642 B] 79s Fetched 101 kB in 0s (284 kB/s) 79s (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 ... 79924 files and directories currently installed.) 79s Preparing to unpack .../python3-minimal_3.12.7-1_arm64.deb ... 79s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 79s Setting up python3-minimal (3.12.7-1) ... 80s (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 ... 79924 files and directories currently installed.) 80s Preparing to unpack .../python3_3.12.7-1_arm64.deb ... 80s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 80s Preparing to unpack .../libpython3-stdlib_3.12.7-1_arm64.deb ... 80s Unpacking libpython3-stdlib:arm64 (3.12.7-1) over (3.12.6-0ubuntu1) ... 80s Selecting previously unselected package python3.13-gdbm. 80s Preparing to unpack .../python3.13-gdbm_3.13.0-2_arm64.deb ... 80s Unpacking python3.13-gdbm (3.13.0-2) ... 80s Preparing to unpack .../python3-gdbm_3.12.7-1_arm64.deb ... 80s Unpacking python3-gdbm:arm64 (3.12.7-1) over (3.12.6-1ubuntu1) ... 80s Setting up python3.13-gdbm (3.13.0-2) ... 80s Setting up libpython3-stdlib:arm64 (3.12.7-1) ... 80s Setting up python3 (3.12.7-1) ... 81s Setting up python3-gdbm:arm64 (3.12.7-1) ... 81s Processing triggers for man-db (2.12.1-3) ... 81s Reading package lists... 82s Building dependency tree... 82s Reading state information... 82s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 83s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 83s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 83s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 83s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 84s Reading package lists... 84s Reading package lists... 84s Building dependency tree... 84s Reading state information... 85s Calculating upgrade... 85s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 85s Reading package lists... 86s Building dependency tree... 86s Reading state information... 86s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 89s autopkgtest [09:08:46]: testbed running kernel: Linux 6.11.0-8-generic #8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 14:19:41 UTC 2024 89s autopkgtest [09:08:46]: @@@@@@@@@@@@@@@@@@@@ apt-source python-scitrack 91s Get:1 http://ftpmaster.internal/ubuntu plucky/universe python-scitrack 2024.10.8-1 (dsc) [2496 B] 91s Get:2 http://ftpmaster.internal/ubuntu plucky/universe python-scitrack 2024.10.8-1 (tar) [12.3 kB] 91s Get:3 http://ftpmaster.internal/ubuntu plucky/universe python-scitrack 2024.10.8-1 (diff) [3504 B] 91s gpgv: Signature made Wed Oct 9 20:53:37 2024 UTC 91s gpgv: using RSA key 8F91B227C7D6F2B1948C8236793CF67E8F0D11DA 91s gpgv: issuer "emollier@debian.org" 91s gpgv: Can't check signature: No public key 91s dpkg-source: warning: cannot verify inline signature for ./python-scitrack_2024.10.8-1.dsc: no acceptable signature found 91s autopkgtest [09:08:48]: testing package python-scitrack version 2024.10.8-1 91s autopkgtest [09:08:48]: build not needed 92s autopkgtest [09:08:49]: test run-unit-test: preparing testbed 93s Reading package lists... 93s Building dependency tree... 93s Reading state information... 94s Starting pkgProblemResolver with broken count: 0 94s Starting 2 pkgProblemResolver with broken count: 0 94s Done 95s The following additional packages will be installed: 95s libblas3 libgfortran5 liblapack3 libpython3.13-minimal libpython3.13-stdlib 95s python3-all python3-iniconfig python3-numpy python3-packaging python3-pluggy 95s python3-pytest python3-scitrack python3.13 python3.13-minimal 95s Suggested packages: 95s gcc gfortran python-numpy-doc python3-dev python3.13-venv python3.13-doc 95s binfmt-support 95s The following NEW packages will be installed: 95s autopkgtest-satdep libblas3 libgfortran5 liblapack3 libpython3.13-minimal 95s libpython3.13-stdlib python3-all python3-iniconfig python3-numpy 95s python3-packaging python3-pluggy python3-pytest python3-scitrack python3.13 95s python3.13-minimal 95s 0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded. 95s Need to get 12.6 MB/12.6 MB of archives. 95s After this operation, 53.3 MB of additional disk space will be used. 95s Get:1 /tmp/autopkgtest.qArYzC/1-autopkgtest-satdep.deb autopkgtest-satdep arm64 0 [732 B] 95s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 libpython3.13-minimal arm64 3.13.0-2 [877 kB] 95s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.13-minimal arm64 3.13.0-2 [2100 kB] 95s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 libblas3 arm64 3.12.0-3build2 [152 kB] 95s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 libgfortran5 arm64 14.2.0-8ubuntu1 [438 kB] 95s Get:6 http://ftpmaster.internal/ubuntu plucky/main arm64 liblapack3 arm64 3.12.0-3build2 [2293 kB] 95s Get:7 http://ftpmaster.internal/ubuntu plucky/main arm64 libpython3.13-stdlib arm64 3.13.0-2 [2073 kB] 96s Get:8 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.13 arm64 3.13.0-2 [719 kB] 96s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-all arm64 3.12.7-1 [890 B] 96s Get:10 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-iniconfig all 1.1.1-2 [6024 B] 96s Get:11 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-numpy arm64 1:1.26.4+ds-11build1 [3654 kB] 96s Get:12 http://ftpmaster.internal/ubuntu plucky/main arm64 python3-packaging all 24.1-1 [41.4 kB] 96s Get:13 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pluggy all 1.5.0-1 [21.0 kB] 96s Get:14 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-pytest all 8.3.3-1 [251 kB] 96s Get:15 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-scitrack all 2024.10.8-1 [9590 B] 96s Fetched 12.6 MB in 1s (12.7 MB/s) 96s Selecting previously unselected package libpython3.13-minimal:arm64. 96s (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 ... 79931 files and directories currently installed.) 96s Preparing to unpack .../00-libpython3.13-minimal_3.13.0-2_arm64.deb ... 96s Unpacking libpython3.13-minimal:arm64 (3.13.0-2) ... 96s Selecting previously unselected package python3.13-minimal. 96s Preparing to unpack .../01-python3.13-minimal_3.13.0-2_arm64.deb ... 96s Unpacking python3.13-minimal (3.13.0-2) ... 96s Selecting previously unselected package libblas3:arm64. 96s Preparing to unpack .../02-libblas3_3.12.0-3build2_arm64.deb ... 96s Unpacking libblas3:arm64 (3.12.0-3build2) ... 96s Selecting previously unselected package libgfortran5:arm64. 96s Preparing to unpack .../03-libgfortran5_14.2.0-8ubuntu1_arm64.deb ... 96s Unpacking libgfortran5:arm64 (14.2.0-8ubuntu1) ... 96s Selecting previously unselected package liblapack3:arm64. 96s Preparing to unpack .../04-liblapack3_3.12.0-3build2_arm64.deb ... 96s Unpacking liblapack3:arm64 (3.12.0-3build2) ... 96s Selecting previously unselected package libpython3.13-stdlib:arm64. 96s Preparing to unpack .../05-libpython3.13-stdlib_3.13.0-2_arm64.deb ... 96s Unpacking libpython3.13-stdlib:arm64 (3.13.0-2) ... 97s Selecting previously unselected package python3.13. 97s Preparing to unpack .../06-python3.13_3.13.0-2_arm64.deb ... 97s Unpacking python3.13 (3.13.0-2) ... 97s Selecting previously unselected package python3-all. 97s Preparing to unpack .../07-python3-all_3.12.7-1_arm64.deb ... 97s Unpacking python3-all (3.12.7-1) ... 97s Selecting previously unselected package python3-iniconfig. 97s Preparing to unpack .../08-python3-iniconfig_1.1.1-2_all.deb ... 97s Unpacking python3-iniconfig (1.1.1-2) ... 97s Selecting previously unselected package python3-numpy. 97s Preparing to unpack .../09-python3-numpy_1%3a1.26.4+ds-11build1_arm64.deb ... 97s Unpacking python3-numpy (1:1.26.4+ds-11build1) ... 97s Selecting previously unselected package python3-packaging. 97s Preparing to unpack .../10-python3-packaging_24.1-1_all.deb ... 97s Unpacking python3-packaging (24.1-1) ... 97s Selecting previously unselected package python3-pluggy. 97s Preparing to unpack .../11-python3-pluggy_1.5.0-1_all.deb ... 97s Unpacking python3-pluggy (1.5.0-1) ... 97s Selecting previously unselected package python3-pytest. 97s Preparing to unpack .../12-python3-pytest_8.3.3-1_all.deb ... 97s Unpacking python3-pytest (8.3.3-1) ... 97s Selecting previously unselected package python3-scitrack. 97s Preparing to unpack .../13-python3-scitrack_2024.10.8-1_all.deb ... 97s Unpacking python3-scitrack (2024.10.8-1) ... 97s Selecting previously unselected package autopkgtest-satdep. 97s Preparing to unpack .../14-1-autopkgtest-satdep.deb ... 97s Unpacking autopkgtest-satdep (0) ... 97s Setting up python3-iniconfig (1.1.1-2) ... 97s Setting up libpython3.13-minimal:arm64 (3.13.0-2) ... 97s Setting up libblas3:arm64 (3.12.0-3build2) ... 97s update-alternatives: using /usr/lib/aarch64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/aarch64-linux-gnu/libblas.so.3 (libblas.so.3-aarch64-linux-gnu) in auto mode 97s Setting up python3-packaging (24.1-1) ... 98s Setting up libgfortran5:arm64 (14.2.0-8ubuntu1) ... 98s Setting up python3-pluggy (1.5.0-1) ... 98s Setting up python3-scitrack (2024.10.8-1) ... 98s Setting up python3.13-minimal (3.13.0-2) ... 99s Setting up libpython3.13-stdlib:arm64 (3.13.0-2) ... 99s Setting up liblapack3:arm64 (3.12.0-3build2) ... 99s update-alternatives: using /usr/lib/aarch64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/aarch64-linux-gnu/liblapack.so.3 (liblapack.so.3-aarch64-linux-gnu) in auto mode 99s Setting up python3.13 (3.13.0-2) ... 100s Setting up python3-pytest (8.3.3-1) ... 101s Setting up python3-all (3.12.7-1) ... 101s Setting up python3-numpy (1:1.26.4+ds-11build1) ... 105s Setting up autopkgtest-satdep (0) ... 105s Processing triggers for systemd (256.5-2ubuntu4) ... 105s Processing triggers for man-db (2.12.1-3) ... 105s Processing triggers for libc-bin (2.40-1ubuntu3) ... 108s (Reading database ... 81740 files and directories currently installed.) 108s Removing autopkgtest-satdep (0) ... 109s autopkgtest [09:09:06]: test run-unit-test: [----------------------- 110s ============================= test session starts ============================== 110s platform linux -- Python 3.13.0, pytest-8.3.3, pluggy-1.5.0 -- /usr/bin/python3.13 110s cachedir: .pytest_cache 110s rootdir: /tmp/autopkgtest.qArYzC/autopkgtest_tmp 110s plugins: typeguard-4.4.1 110s collecting ... collected 22 items 110s 110s tests/test_logging.py::test_creates_path PASSED [ 4%] 110s tests/test_logging.py::test_set_path_if_exists PASSED [ 9%] 110s tests/test_logging.py::test_tracks_args PASSED [ 13%] 110s tests/test_logging.py::test_tracks_locals PASSED [ 18%] 110s tests/test_logging.py::test_tracks_locals_skip_module PASSED [ 22%] 110s tests/test_logging.py::test_package_inference PASSED [ 27%] 110s tests/test_logging.py::test_package_versioning FAILED [ 31%] 110s tests/test_logging.py::test_tracks_versions FAILED [ 36%] 110s tests/test_logging.py::test_caching FAILED [ 40%] 110s tests/test_logging.py::test_shutdown PASSED [ 45%] 110s tests/test_logging.py::test_tracks_versions_empty PASSED [ 50%] 110s tests/test_logging.py::test_tracks_versions_string FAILED [ 54%] 110s tests/test_logging.py::test_get_version_for_package FAILED [ 59%] 110s tests/test_logging.py::test_tracks_versions_module FAILED [ 63%] 110s tests/test_logging.py::test_appending PASSED [ 68%] 110s tests/test_logging.py::test_mdsum_input PASSED [ 72%] 110s tests/test_logging.py::test_mdsum_output PASSED [ 77%] 110s tests/test_logging.py::test_logging_text PASSED [ 81%] 110s tests/test_logging.py::test_logfile_path PASSED [ 86%] 110s tests/test_logging.py::test_md5sum_text PASSED [ 90%] 110s tests/test_logging.py::test_get_text_hexdigest_invalid PASSED [ 95%] 110s tests/test_logging.py::test_read_from_written PASSED [100%] 110s 110s =================================== FAILURES =================================== 110s ___________________________ test_package_versioning ____________________________ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s > from . import multiarray 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 110s from . import overrides 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """Implementation of __array_function__ overrides from NEP-18.""" 110s import collections 110s import functools 110s import os 110s 110s from .._utils import set_module 110s from .._utils._inspect import getargspec 110s > from numpy.core._multiarray_umath import ( 110s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 110s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 110s 110s During handling of the above exception, another exception occurred: 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s > from numpy.__config__ import show as show_config 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 110s from numpy.core._multiarray_umath import ( 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s from . import multiarray 110s except ImportError as exc: 110s import sys 110s msg = """ 110s 110s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s 110s Importing the numpy C-extensions failed. This error can happen for 110s many reasons, often due to issues with your setup or how NumPy was 110s installed. 110s 110s We have compiled some common reasons and troubleshooting tips at: 110s 110s https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s 110s Please note and check the following: 110s 110s * The Python version is: Python%d.%d from "%s" 110s * The NumPy version is: "%s" 110s 110s and make sure that they are the versions you expect. 110s Please carefully study the documentation linked above for further help. 110s 110s Original error was: %s 110s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 110s __version__, exc) 110s > raise ImportError(msg) 110s E ImportError: 110s E 110s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s E 110s E Importing the numpy C-extensions failed. This error can happen for 110s E many reasons, often due to issues with your setup or how NumPy was 110s E installed. 110s E 110s E We have compiled some common reasons and troubleshooting tips at: 110s E 110s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s E 110s E Please note and check the following: 110s E 110s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 110s E * The NumPy version is: "1.26.4" 110s E 110s E and make sure that they are the versions you expect. 110s E Please carefully study the documentation linked above for further help. 110s E 110s E Original error was: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 110s 110s The above exception was the direct cause of the following exception: 110s 110s def test_package_versioning(): 110s """correctly identify versions for specified packages""" 110s > vn = get_version_for_package("numpy") 110s 110s tests/test_logging.py:109: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/scitrack/__init__.py:45: in get_version_for_package 110s mod = importlib.import_module(package) 110s /usr/lib/python3.13/importlib/__init__.py:88: in import_module 110s return _bootstrap._gcd_import(name[level:], package, level) 110s :1387: in _gcd_import 110s ??? 110s :1360: in _find_and_load 110s ??? 110s :1331: in _find_and_load_unlocked 110s ??? 110s :935: in _load_unlocked 110s ??? 110s :1022: in exec_module 110s ??? 110s :488: in _call_with_frames_removed 110s ??? 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s from numpy.__config__ import show as show_config 110s except ImportError as e: 110s msg = """Error importing numpy: you should not try to import numpy from 110s its source directory; please exit the numpy source tree, and relaunch 110s your python interpreter from there.""" 110s > raise ImportError(msg) from e 110s E ImportError: Error importing numpy: you should not try to import numpy from 110s E its source directory; please exit the numpy source tree, and relaunch 110s E your python interpreter from there. 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 110s _____________________________ test_tracks_versions _____________________________ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s > from . import multiarray 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 110s from . import overrides 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """Implementation of __array_function__ overrides from NEP-18.""" 110s import collections 110s import functools 110s import os 110s 110s from .._utils import set_module 110s from .._utils._inspect import getargspec 110s > from numpy.core._multiarray_umath import ( 110s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 110s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 110s 110s During handling of the above exception, another exception occurred: 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s > from numpy.__config__ import show as show_config 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 110s from numpy.core._multiarray_umath import ( 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s from . import multiarray 110s except ImportError as exc: 110s import sys 110s msg = """ 110s 110s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s 110s Importing the numpy C-extensions failed. This error can happen for 110s many reasons, often due to issues with your setup or how NumPy was 110s installed. 110s 110s We have compiled some common reasons and troubleshooting tips at: 110s 110s https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s 110s Please note and check the following: 110s 110s * The Python version is: Python%d.%d from "%s" 110s * The NumPy version is: "%s" 110s 110s and make sure that they are the versions you expect. 110s Please carefully study the documentation linked above for further help. 110s 110s Original error was: %s 110s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 110s __version__, exc) 110s > raise ImportError(msg) 110s E ImportError: 110s E 110s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s E 110s E Importing the numpy C-extensions failed. This error can happen for 110s E many reasons, often due to issues with your setup or how NumPy was 110s E installed. 110s E 110s E We have compiled some common reasons and troubleshooting tips at: 110s E 110s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s E 110s E Please note and check the following: 110s E 110s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 110s E * The NumPy version is: "1.26.4" 110s E 110s E and make sure that they are the versions you expect. 110s E Please carefully study the documentation linked above for further help. 110s E 110s E Original error was: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 110s 110s The above exception was the direct cause of the following exception: 110s 110s logfile = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_tracks_versions0/delme.log') 110s 110s def test_tracks_versions(logfile): 110s """should track versions""" 110s LOGGER = CachingLogger(create_dir=True) 110s LOGGER.log_file_path = logfile 110s LOGGER.input_file(TEST_ROOTDIR / "sample-lf.fasta") 110s > LOGGER.log_versions(["numpy"]) 110s 110s tests/test_logging.py:122: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/scitrack/__init__.py:226: in log_versions 110s vn = get_version_for_package(package) 110s /usr/lib/python3/dist-packages/scitrack/__init__.py:45: in get_version_for_package 110s mod = importlib.import_module(package) 110s /usr/lib/python3.13/importlib/__init__.py:88: in import_module 110s return _bootstrap._gcd_import(name[level:], package, level) 110s :1387: in _gcd_import 110s ??? 110s :1360: in _find_and_load 110s ??? 110s :1331: in _find_and_load_unlocked 110s ??? 110s :935: in _load_unlocked 110s ??? 110s :1022: in exec_module 110s ??? 110s :488: in _call_with_frames_removed 110s ??? 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s from numpy.__config__ import show as show_config 110s except ImportError as e: 110s msg = """Error importing numpy: you should not try to import numpy from 110s its source directory; please exit the numpy source tree, and relaunch 110s your python interpreter from there.""" 110s > raise ImportError(msg) from e 110s E ImportError: Error importing numpy: you should not try to import numpy from 110s E its source directory; please exit the numpy source tree, and relaunch 110s E your python interpreter from there. 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 110s ------------------------------ Captured log call ------------------------------- 110s INFO root:__init__.py:243 system_details : system=#8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 14:19:41 UTC 2024 110s INFO root:__init__.py:244 python : 3.13.0 110s INFO root:__init__.py:245 user : ubuntu 110s INFO root:__init__.py:246 command_string : /usr/lib/python3/dist-packages/pytest/__main__.py -v 110s INFO root:__init__.py:179 input_file_path : /tmp/autopkgtest.qArYzC/autopkgtest_tmp/tests/sample-lf.fasta 110s INFO root:__init__.py:179 input_file_path md5sum : 96eb2c2632bae19eb65ea9224aaafdad 110s _________________________________ test_caching _________________________________ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s > from . import multiarray 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 110s from . import overrides 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """Implementation of __array_function__ overrides from NEP-18.""" 110s import collections 110s import functools 110s import os 110s 110s from .._utils import set_module 110s from .._utils._inspect import getargspec 110s > from numpy.core._multiarray_umath import ( 110s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 110s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 110s 110s During handling of the above exception, another exception occurred: 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s > from numpy.__config__ import show as show_config 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 110s from numpy.core._multiarray_umath import ( 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s from . import multiarray 110s except ImportError as exc: 110s import sys 110s msg = """ 110s 110s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s 110s Importing the numpy C-extensions failed. This error can happen for 110s many reasons, often due to issues with your setup or how NumPy was 110s installed. 110s 110s We have compiled some common reasons and troubleshooting tips at: 110s 110s https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s 110s Please note and check the following: 110s 110s * The Python version is: Python%d.%d from "%s" 110s * The NumPy version is: "%s" 110s 110s and make sure that they are the versions you expect. 110s Please carefully study the documentation linked above for further help. 110s 110s Original error was: %s 110s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 110s __version__, exc) 110s > raise ImportError(msg) 110s E ImportError: 110s E 110s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s E 110s E Importing the numpy C-extensions failed. This error can happen for 110s E many reasons, often due to issues with your setup or how NumPy was 110s E installed. 110s E 110s E We have compiled some common reasons and troubleshooting tips at: 110s E 110s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s E 110s E Please note and check the following: 110s E 110s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 110s E * The NumPy version is: "1.26.4" 110s E 110s E and make sure that they are the versions you expect. 110s E Please carefully study the documentation linked above for further help. 110s E 110s E Original error was: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 110s 110s The above exception was the direct cause of the following exception: 110s 110s logfile = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_caching0/delme.log') 110s 110s def test_caching(logfile): 110s """should cache calls prior to logging""" 110s LOGGER = CachingLogger(create_dir=True) 110s LOGGER.input_file(TEST_ROOTDIR / "sample-lf.fasta") 110s assert ( 110s "sample-lf.fasta" in LOGGER._messages[-2] and "md5sum" in LOGGER._messages[-1] 110s ) 110s > LOGGER.log_versions(["numpy"]) 110s 110s tests/test_logging.py:145: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/scitrack/__init__.py:226: in log_versions 110s vn = get_version_for_package(package) 110s /usr/lib/python3/dist-packages/scitrack/__init__.py:45: in get_version_for_package 110s mod = importlib.import_module(package) 110s /usr/lib/python3.13/importlib/__init__.py:88: in import_module 110s return _bootstrap._gcd_import(name[level:], package, level) 110s :1387: in _gcd_import 110s ??? 110s :1360: in _find_and_load 110s ??? 110s :1331: in _find_and_load_unlocked 110s ??? 110s :935: in _load_unlocked 110s ??? 110s :1022: in exec_module 110s ??? 110s :488: in _call_with_frames_removed 110s ??? 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s from numpy.__config__ import show as show_config 110s except ImportError as e: 110s msg = """Error importing numpy: you should not try to import numpy from 110s its source directory; please exit the numpy source tree, and relaunch 110s your python interpreter from there.""" 110s > raise ImportError(msg) from e 110s E ImportError: Error importing numpy: you should not try to import numpy from 110s E its source directory; please exit the numpy source tree, and relaunch 110s E your python interpreter from there. 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 110s _________________________ test_tracks_versions_string __________________________ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s > from . import multiarray 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 110s from . import overrides 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """Implementation of __array_function__ overrides from NEP-18.""" 110s import collections 110s import functools 110s import os 110s 110s from .._utils import set_module 110s from .._utils._inspect import getargspec 110s > from numpy.core._multiarray_umath import ( 110s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 110s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 110s 110s During handling of the above exception, another exception occurred: 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s > from numpy.__config__ import show as show_config 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 110s from numpy.core._multiarray_umath import ( 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s from . import multiarray 110s except ImportError as exc: 110s import sys 110s msg = """ 110s 110s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s 110s Importing the numpy C-extensions failed. This error can happen for 110s many reasons, often due to issues with your setup or how NumPy was 110s installed. 110s 110s We have compiled some common reasons and troubleshooting tips at: 110s 110s https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s 110s Please note and check the following: 110s 110s * The Python version is: Python%d.%d from "%s" 110s * The NumPy version is: "%s" 110s 110s and make sure that they are the versions you expect. 110s Please carefully study the documentation linked above for further help. 110s 110s Original error was: %s 110s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 110s __version__, exc) 110s > raise ImportError(msg) 110s E ImportError: 110s E 110s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s E 110s E Importing the numpy C-extensions failed. This error can happen for 110s E many reasons, often due to issues with your setup or how NumPy was 110s E installed. 110s E 110s E We have compiled some common reasons and troubleshooting tips at: 110s E 110s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s E 110s E Please note and check the following: 110s E 110s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 110s E * The NumPy version is: "1.26.4" 110s E 110s E and make sure that they are the versions you expect. 110s E Please carefully study the documentation linked above for further help. 110s E 110s E Original error was: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 110s 110s The above exception was the direct cause of the following exception: 110s 110s logfile = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_tracks_versions_string0/delme.log') 110s 110s def test_tracks_versions_string(logfile): 110s """should track version if package name is a string""" 110s LOGGER = CachingLogger(create_dir=True) 110s LOGGER.log_file_path = logfile 110s > LOGGER.log_versions("numpy") 110s 110s tests/test_logging.py:182: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/scitrack/__init__.py:226: in log_versions 110s vn = get_version_for_package(package) 110s /usr/lib/python3/dist-packages/scitrack/__init__.py:45: in get_version_for_package 110s mod = importlib.import_module(package) 110s /usr/lib/python3.13/importlib/__init__.py:88: in import_module 110s return _bootstrap._gcd_import(name[level:], package, level) 110s :1387: in _gcd_import 110s ??? 110s :1360: in _find_and_load 110s ??? 110s :1331: in _find_and_load_unlocked 110s ??? 110s :935: in _load_unlocked 110s ??? 110s :1022: in exec_module 110s ??? 110s :488: in _call_with_frames_removed 110s ??? 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s from numpy.__config__ import show as show_config 110s except ImportError as e: 110s msg = """Error importing numpy: you should not try to import numpy from 110s its source directory; please exit the numpy source tree, and relaunch 110s your python interpreter from there.""" 110s > raise ImportError(msg) from e 110s E ImportError: Error importing numpy: you should not try to import numpy from 110s E its source directory; please exit the numpy source tree, and relaunch 110s E your python interpreter from there. 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 110s ------------------------------ Captured log call ------------------------------- 110s INFO root:__init__.py:243 system_details : system=#8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 14:19:41 UTC 2024 110s INFO root:__init__.py:244 python : 3.13.0 110s INFO root:__init__.py:245 user : ubuntu 110s INFO root:__init__.py:246 command_string : /usr/lib/python3/dist-packages/pytest/__main__.py -v 110s _________________________ test_get_version_for_package _________________________ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s > from . import multiarray 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 110s from . import overrides 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """Implementation of __array_function__ overrides from NEP-18.""" 110s import collections 110s import functools 110s import os 110s 110s from .._utils import set_module 110s from .._utils._inspect import getargspec 110s > from numpy.core._multiarray_umath import ( 110s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 110s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 110s 110s During handling of the above exception, another exception occurred: 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s > from numpy.__config__ import show as show_config 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 110s from numpy.core._multiarray_umath import ( 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s from . import multiarray 110s except ImportError as exc: 110s import sys 110s msg = """ 110s 110s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s 110s Importing the numpy C-extensions failed. This error can happen for 110s many reasons, often due to issues with your setup or how NumPy was 110s installed. 110s 110s We have compiled some common reasons and troubleshooting tips at: 110s 110s https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s 110s Please note and check the following: 110s 110s * The Python version is: Python%d.%d from "%s" 110s * The NumPy version is: "%s" 110s 110s and make sure that they are the versions you expect. 110s Please carefully study the documentation linked above for further help. 110s 110s Original error was: %s 110s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 110s __version__, exc) 110s > raise ImportError(msg) 110s E ImportError: 110s E 110s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s E 110s E Importing the numpy C-extensions failed. This error can happen for 110s E many reasons, often due to issues with your setup or how NumPy was 110s E installed. 110s E 110s E We have compiled some common reasons and troubleshooting tips at: 110s E 110s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s E 110s E Please note and check the following: 110s E 110s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 110s E * The NumPy version is: "1.26.4" 110s E 110s E and make sure that they are the versions you expect. 110s E Please carefully study the documentation linked above for further help. 110s E 110s E Original error was: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 110s 110s The above exception was the direct cause of the following exception: 110s 110s def test_get_version_for_package(): 110s """should track version if package is a module""" 110s > import numpy 110s 110s tests/test_logging.py:195: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s from numpy.__config__ import show as show_config 110s except ImportError as e: 110s msg = """Error importing numpy: you should not try to import numpy from 110s its source directory; please exit the numpy source tree, and relaunch 110s your python interpreter from there.""" 110s > raise ImportError(msg) from e 110s E ImportError: Error importing numpy: you should not try to import numpy from 110s E its source directory; please exit the numpy source tree, and relaunch 110s E your python interpreter from there. 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 110s _________________________ test_tracks_versions_module __________________________ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s > from . import multiarray 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:24: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/core/multiarray.py:10: in 110s from . import overrides 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """Implementation of __array_function__ overrides from NEP-18.""" 110s import collections 110s import functools 110s import os 110s 110s from .._utils import set_module 110s from .._utils._inspect import getargspec 110s > from numpy.core._multiarray_umath import ( 110s add_docstring, _get_implementing_args, _ArrayFunctionDispatcher) 110s E ModuleNotFoundError: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/overrides.py:8: ModuleNotFoundError 110s 110s During handling of the above exception, another exception occurred: 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s > from numpy.__config__ import show as show_config 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:130: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s /usr/lib/python3/dist-packages/numpy/__config__.py:4: in 110s from numpy.core._multiarray_umath import ( 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. 110s 110s Please note that this module is private. All functions and objects 110s are available in the main ``numpy`` namespace - use that instead. 110s 110s """ 110s 110s import os 110s import warnings 110s 110s from numpy.version import version as __version__ 110s 110s 110s # disables OpenBLAS affinity setting of the main thread that limits 110s # python threads or processes to one core 110s env_added = [] 110s for envkey in ['OPENBLAS_MAIN_FREE', 'GOTOBLAS_MAIN_FREE']: 110s if envkey not in os.environ: 110s os.environ[envkey] = '1' 110s env_added.append(envkey) 110s 110s try: 110s from . import multiarray 110s except ImportError as exc: 110s import sys 110s msg = """ 110s 110s IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s 110s Importing the numpy C-extensions failed. This error can happen for 110s many reasons, often due to issues with your setup or how NumPy was 110s installed. 110s 110s We have compiled some common reasons and troubleshooting tips at: 110s 110s https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s 110s Please note and check the following: 110s 110s * The Python version is: Python%d.%d from "%s" 110s * The NumPy version is: "%s" 110s 110s and make sure that they are the versions you expect. 110s Please carefully study the documentation linked above for further help. 110s 110s Original error was: %s 110s """ % (sys.version_info[0], sys.version_info[1], sys.executable, 110s __version__, exc) 110s > raise ImportError(msg) 110s E ImportError: 110s E 110s E IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE! 110s E 110s E Importing the numpy C-extensions failed. This error can happen for 110s E many reasons, often due to issues with your setup or how NumPy was 110s E installed. 110s E 110s E We have compiled some common reasons and troubleshooting tips at: 110s E 110s E https://numpy.org/devdocs/user/troubleshooting-importerror.html 110s E 110s E Please note and check the following: 110s E 110s E * The Python version is: Python3.13 from "/usr/bin/python3.13" 110s E * The NumPy version is: "1.26.4" 110s E 110s E and make sure that they are the versions you expect. 110s E Please carefully study the documentation linked above for further help. 110s E 110s E Original error was: No module named 'numpy.core._multiarray_umath' 110s 110s /usr/lib/python3/dist-packages/numpy/core/__init__.py:50: ImportError 110s 110s The above exception was the direct cause of the following exception: 110s 110s logfile = PosixPath('/tmp/pytest-of-ubuntu/pytest-0/test_tracks_versions_module0/delme.log') 110s 110s def test_tracks_versions_module(logfile): 110s """should track version if package is a module""" 110s LOGGER = CachingLogger(create_dir=True) 110s LOGGER.log_file_path = logfile 110s > import numpy 110s 110s tests/test_logging.py:222: 110s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 110s 110s """ 110s NumPy 110s ===== 110s 110s Provides 110s 1. An array object of arbitrary homogeneous items 110s 2. Fast mathematical operations over arrays 110s 3. Linear Algebra, Fourier Transforms, Random Number Generation 110s 110s How to use the documentation 110s ---------------------------- 110s Documentation is available in two forms: docstrings provided 110s with the code, and a loose standing reference guide, available from 110s `the NumPy homepage `_. 110s 110s We recommend exploring the docstrings using 110s `IPython `_, an advanced Python shell with 110s TAB-completion and introspection capabilities. See below for further 110s instructions. 110s 110s The docstring examples assume that `numpy` has been imported as ``np``:: 110s 110s >>> import numpy as np 110s 110s Code snippets are indicated by three greater-than signs:: 110s 110s >>> x = 42 110s >>> x = x + 1 110s 110s Use the built-in ``help`` function to view a function's docstring:: 110s 110s >>> help(np.sort) 110s ... # doctest: +SKIP 110s 110s For some objects, ``np.info(obj)`` may provide additional help. This is 110s particularly true if you see the line "Help on ufunc object:" at the top 110s of the help() page. Ufuncs are implemented in C, not Python, for speed. 110s The native Python help() does not know how to view their help, but our 110s np.info() function does. 110s 110s To search for documents containing a keyword, do:: 110s 110s >>> np.lookfor('keyword') 110s ... # doctest: +SKIP 110s 110s General-purpose documents like a glossary and help on the basic concepts 110s of numpy are available under the ``doc`` sub-module:: 110s 110s >>> from numpy import doc 110s >>> help(doc) 110s ... # doctest: +SKIP 110s 110s Available subpackages 110s --------------------- 110s lib 110s Basic functions used by several sub-packages. 110s random 110s Core Random Tools 110s linalg 110s Core Linear Algebra Tools 110s fft 110s Core FFT routines 110s polynomial 110s Polynomial tools 110s testing 110s NumPy testing tools 110s distutils 110s Enhancements to distutils with support for 110s Fortran compilers support and more (for Python <= 3.11). 110s 110s Utilities 110s --------- 110s test 110s Run numpy unittests 110s show_config 110s Show numpy build configuration 110s matlib 110s Make everything matrices. 110s __version__ 110s NumPy version string 110s 110s Viewing documentation using IPython 110s ----------------------------------- 110s 110s Start IPython and import `numpy` usually under the alias ``np``: `import 110s numpy as np`. Then, directly past or use the ``%cpaste`` magic to paste 110s examples into the shell. To see which functions are available in `numpy`, 110s type ``np.`` (where ```` refers to the TAB key), or use 110s ``np.*cos*?`` (where ```` refers to the ENTER key) to narrow 110s down the list. To view the docstring for a function, use 110s ``np.cos?`` (to view the docstring) and ``np.cos??`` (to view 110s the source code). 110s 110s Copies vs. in-place operation 110s ----------------------------- 110s Most of the functions in `numpy` return a copy of the array argument 110s (e.g., `np.sort`). In-place versions of these functions are often 110s available as array methods, i.e. ``x = np.array([1,2,3]); x.sort()``. 110s Exceptions to this rule are documented. 110s 110s """ 110s import sys 110s import warnings 110s 110s from ._globals import _NoValue, _CopyMode 110s # These exceptions were moved in 1.25 and are hidden from __dir__() 110s from .exceptions import ( 110s ComplexWarning, ModuleDeprecationWarning, VisibleDeprecationWarning, 110s TooHardError, AxisError) 110s 110s 110s # If a version with git hash was stored, use that instead 110s from . import version 110s from .version import __version__ 110s 110s # We first need to detect if we're being called as part of the numpy setup 110s # procedure itself in a reliable manner. 110s try: 110s __NUMPY_SETUP__ 110s except NameError: 110s __NUMPY_SETUP__ = False 110s 110s if __NUMPY_SETUP__: 110s sys.stderr.write('Running from numpy source directory.\n') 110s else: 110s # Allow distributors to run custom init code before importing numpy.core 110s from . import _distributor_init 110s 110s try: 110s from numpy.__config__ import show as show_config 110s except ImportError as e: 110s msg = """Error importing numpy: you should not try to import numpy from 110s its source directory; please exit the numpy source tree, and relaunch 110s your python interpreter from there.""" 110s > raise ImportError(msg) from e 110s E ImportError: Error importing numpy: you should not try to import numpy from 110s E its source directory; please exit the numpy source tree, and relaunch 110s E your python interpreter from there. 110s 110s /usr/lib/python3/dist-packages/numpy/__init__.py:135: ImportError 110s ------------------------------ Captured log call ------------------------------- 110s INFO root:__init__.py:243 system_details : system=#8-Ubuntu SMP PREEMPT_DYNAMIC Mon Sep 16 14:19:41 UTC 2024 110s INFO root:__init__.py:244 python : 3.13.0 110s INFO root:__init__.py:245 user : ubuntu 110s INFO root:__init__.py:246 command_string : /usr/lib/python3/dist-packages/pytest/__main__.py -v 110s =========================== short test summary info ============================ 110s FAILED tests/test_logging.py::test_package_versioning - ImportError: Error im... 110s FAILED tests/test_logging.py::test_tracks_versions - ImportError: Error impor... 110s FAILED tests/test_logging.py::test_caching - ImportError: Error importing num... 110s FAILED tests/test_logging.py::test_tracks_versions_string - ImportError: Erro... 110s FAILED tests/test_logging.py::test_get_version_for_package - ImportError: Err... 110s FAILED tests/test_logging.py::test_tracks_versions_module - ImportError: Erro... 110s ========================= 6 failed, 16 passed in 0.31s ========================= 110s autopkgtest [09:09:07]: test run-unit-test: -----------------------] 111s autopkgtest [09:09:08]: test run-unit-test: - - - - - - - - - - results - - - - - - - - - - 111s run-unit-test FAIL non-zero exit status 1 111s autopkgtest [09:09:08]: test autodep8-python3: preparing testbed 206s autopkgtest [09:10:43]: testbed dpkg architecture: arm64 206s autopkgtest [09:10:43]: testbed apt version: 2.9.8 206s autopkgtest [09:10:43]: @@@@@@@@@@@@@@@@@@@@ test bed setup 207s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease [73.9 kB] 207s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse Sources [15.3 kB] 207s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main Sources [76.4 kB] 207s Get:4 http://ftpmaster.internal/ubuntu plucky-proposed/restricted Sources [7016 B] 207s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/universe Sources [849 kB] 208s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 Packages [104 kB] 208s Get:7 http://ftpmaster.internal/ubuntu plucky-proposed/restricted arm64 Packages [50.3 kB] 208s Get:8 http://ftpmaster.internal/ubuntu plucky-proposed/universe arm64 Packages [601 kB] 208s Get:9 http://ftpmaster.internal/ubuntu plucky-proposed/multiverse arm64 Packages [17.1 kB] 208s Fetched 1793 kB in 1s (1271 kB/s) 208s Reading package lists... 211s Reading package lists... 211s Building dependency tree... 211s Reading state information... 212s Calculating upgrade... 212s The following NEW packages will be installed: 212s python3.13-gdbm 212s The following packages will be upgraded: 212s libpython3-stdlib python3 python3-gdbm python3-minimal 212s 4 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. 212s Need to get 101 kB of archives. 212s After this operation, 141 kB of additional disk space will be used. 212s Get:1 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-minimal arm64 3.12.7-1 [27.4 kB] 212s Get:2 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3 arm64 3.12.7-1 [24.0 kB] 212s Get:3 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 libpython3-stdlib arm64 3.12.7-1 [10.0 kB] 212s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.13-gdbm arm64 3.13.0-2 [30.7 kB] 213s Get:5 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-gdbm arm64 3.12.7-1 [8642 B] 213s Fetched 101 kB in 0s (241 kB/s) 213s (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 ... 79924 files and directories currently installed.) 213s Preparing to unpack .../python3-minimal_3.12.7-1_arm64.deb ... 213s Unpacking python3-minimal (3.12.7-1) over (3.12.6-0ubuntu1) ... 213s Setting up python3-minimal (3.12.7-1) ... 214s (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 ... 79924 files and directories currently installed.) 214s Preparing to unpack .../python3_3.12.7-1_arm64.deb ... 214s Unpacking python3 (3.12.7-1) over (3.12.6-0ubuntu1) ... 214s Preparing to unpack .../libpython3-stdlib_3.12.7-1_arm64.deb ... 214s Unpacking libpython3-stdlib:arm64 (3.12.7-1) over (3.12.6-0ubuntu1) ... 214s Selecting previously unselected package python3.13-gdbm. 214s Preparing to unpack .../python3.13-gdbm_3.13.0-2_arm64.deb ... 214s Unpacking python3.13-gdbm (3.13.0-2) ... 214s Preparing to unpack .../python3-gdbm_3.12.7-1_arm64.deb ... 214s Unpacking python3-gdbm:arm64 (3.12.7-1) over (3.12.6-1ubuntu1) ... 214s Setting up python3.13-gdbm (3.13.0-2) ... 214s Setting up libpython3-stdlib:arm64 (3.12.7-1) ... 214s Setting up python3 (3.12.7-1) ... 214s Setting up python3-gdbm:arm64 (3.12.7-1) ... 214s Processing triggers for man-db (2.12.1-3) ... 215s Reading package lists... 215s Building dependency tree... 215s Reading state information... 216s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 216s Hit:1 http://ftpmaster.internal/ubuntu plucky-proposed InRelease 216s Hit:2 http://ftpmaster.internal/ubuntu plucky InRelease 216s Hit:3 http://ftpmaster.internal/ubuntu plucky-updates InRelease 216s Hit:4 http://ftpmaster.internal/ubuntu plucky-security InRelease 217s Reading package lists... 217s Reading package lists... 218s Building dependency tree... 218s Reading state information... 218s Calculating upgrade... 219s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 219s Reading package lists... 219s Building dependency tree... 219s Reading state information... 220s 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 223s Reading package lists... 224s Building dependency tree... 224s Reading state information... 224s Starting pkgProblemResolver with broken count: 0 224s Starting 2 pkgProblemResolver with broken count: 0 224s Done 225s The following additional packages will be installed: 225s libpython3.13-minimal libpython3.13-stdlib python3-all python3-scitrack 225s python3.13 python3.13-minimal 225s Suggested packages: 225s python3.13-venv python3.13-doc binfmt-support 225s The following NEW packages will be installed: 225s autopkgtest-satdep libpython3.13-minimal libpython3.13-stdlib python3-all 225s python3-scitrack python3.13 python3.13-minimal 225s 0 upgraded, 7 newly installed, 0 to remove and 0 not upgraded. 225s Need to get 5780 kB/5781 kB of archives. 225s After this operation, 24.2 MB of additional disk space will be used. 225s Get:1 /tmp/autopkgtest.qArYzC/2-autopkgtest-satdep.deb autopkgtest-satdep arm64 0 [720 B] 225s Get:2 http://ftpmaster.internal/ubuntu plucky/main arm64 libpython3.13-minimal arm64 3.13.0-2 [877 kB] 226s Get:3 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.13-minimal arm64 3.13.0-2 [2100 kB] 228s Get:4 http://ftpmaster.internal/ubuntu plucky/main arm64 libpython3.13-stdlib arm64 3.13.0-2 [2073 kB] 229s Get:5 http://ftpmaster.internal/ubuntu plucky/main arm64 python3.13 arm64 3.13.0-2 [719 kB] 229s Get:6 http://ftpmaster.internal/ubuntu plucky-proposed/main arm64 python3-all arm64 3.12.7-1 [890 B] 229s Get:7 http://ftpmaster.internal/ubuntu plucky/universe arm64 python3-scitrack all 2024.10.8-1 [9590 B] 230s Fetched 5780 kB in 4s (1504 kB/s) 230s Selecting previously unselected package libpython3.13-minimal:arm64. 230s (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 ... 79931 files and directories currently installed.) 230s Preparing to unpack .../0-libpython3.13-minimal_3.13.0-2_arm64.deb ... 230s Unpacking libpython3.13-minimal:arm64 (3.13.0-2) ... 230s Selecting previously unselected package python3.13-minimal. 230s Preparing to unpack .../1-python3.13-minimal_3.13.0-2_arm64.deb ... 230s Unpacking python3.13-minimal (3.13.0-2) ... 230s Selecting previously unselected package libpython3.13-stdlib:arm64. 230s Preparing to unpack .../2-libpython3.13-stdlib_3.13.0-2_arm64.deb ... 230s Unpacking libpython3.13-stdlib:arm64 (3.13.0-2) ... 230s Selecting previously unselected package python3.13. 230s Preparing to unpack .../3-python3.13_3.13.0-2_arm64.deb ... 230s Unpacking python3.13 (3.13.0-2) ... 230s Selecting previously unselected package python3-all. 230s Preparing to unpack .../4-python3-all_3.12.7-1_arm64.deb ... 230s Unpacking python3-all (3.12.7-1) ... 230s Selecting previously unselected package python3-scitrack. 230s Preparing to unpack .../5-python3-scitrack_2024.10.8-1_all.deb ... 230s Unpacking python3-scitrack (2024.10.8-1) ... 230s Selecting previously unselected package autopkgtest-satdep. 230s Preparing to unpack .../6-2-autopkgtest-satdep.deb ... 230s Unpacking autopkgtest-satdep (0) ... 230s Setting up libpython3.13-minimal:arm64 (3.13.0-2) ... 230s Setting up python3-scitrack (2024.10.8-1) ... 230s Setting up python3.13-minimal (3.13.0-2) ... 231s Setting up libpython3.13-stdlib:arm64 (3.13.0-2) ... 231s Setting up python3.13 (3.13.0-2) ... 233s Setting up python3-all (3.12.7-1) ... 233s Setting up autopkgtest-satdep (0) ... 233s Processing triggers for man-db (2.12.1-3) ... 233s Processing triggers for systemd (256.5-2ubuntu4) ... 236s (Reading database ... 80675 files and directories currently installed.) 236s Removing autopkgtest-satdep (0) ... 238s autopkgtest [09:11:15]: 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 238s autopkgtest [09:11:15]: test autodep8-python3: [----------------------- 238s Testing with python3.13: 238s 238s Testing with python3.12: 238s 239s autopkgtest [09:11:16]: test autodep8-python3: -----------------------] 239s autopkgtest [09:11:16]: test autodep8-python3: - - - - - - - - - - results - - - - - - - - - - 239s autodep8-python3 PASS (superficial) 240s autopkgtest [09:11:17]: @@@@@@@@@@@@@@@@@@@@ summary 240s run-unit-test FAIL non-zero exit status 1 240s autodep8-python3 PASS (superficial) 252s virt: nova [W] Skipping flock in bos03-arm64 252s virt: Creating nova instance adt-plucky-arm64-python-scitrack-20241113-090717-juju-7f2275-prod-proposed-migration-environment-2-98a5b19d-e00c-445e-bbe7-5414c38e78b2 from image adt/ubuntu-plucky-arm64-server-20241113.img (UUID 2d7760e6-2439-4200-89d6-5ed33e5c6330)... 252s virt: nova [W] Skipping flock in bos03-arm64 252s virt: Creating nova instance adt-plucky-arm64-python-scitrack-20241113-090717-juju-7f2275-prod-proposed-migration-environment-2-98a5b19d-e00c-445e-bbe7-5414c38e78b2 from image adt/ubuntu-plucky-arm64-server-20241113.img (UUID 2d7760e6-2439-4200-89d6-5ed33e5c6330)...